summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-08-17 10:11:40 +0200
committerMichael Vogt <mvo@debian.org>2013-08-17 10:11:40 +0200
commit304731b8f23e03d15d1c2d6f66e1bf5f26ac0ca2 (patch)
tree6662c499b4909620d24469ad6aaa3f7e1fa0f3fd /apt-private
parent1afd369d00f2f9272462ffc6c6e24f293a81459e (diff)
[ABI-Break] remove the PACKAGE_MATCHER_ABI_COMPAT defines
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-list.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/apt-private/private-list.cc b/apt-private/private-list.cc
index c3a21aafc..bbf4607f9 100644
--- a/apt-private/private-list.cc
+++ b/apt-private/private-list.cc
@@ -53,9 +53,6 @@ struct PackageSortAlphabetic
}
};
-#ifdef PACKAGE_MATCHER_ABI_COMPAT
-#define PackageMatcher PackageNameMatchesFnmatch
-#endif
class PackageNameMatcher : public Matcher
{
public:
@@ -64,16 +61,11 @@ class PackageNameMatcher : public Matcher
for(int i=0; patterns[i] != NULL; i++)
{
std::string pattern = patterns[i];
-#ifdef PACKAGE_MATCHER_ABI_COMPAT
- APT::CacheFilter::PackageNameMatchesFnmatch *cachefilter = NULL;
- cachefilter = new APT::CacheFilter::PackageNameMatchesFnmatch(pattern);
-#else
APT::CacheFilter::PackageMatcher *cachefilter = NULL;
if(_config->FindB("APT::Cmd::UseRegexp", false) == true)
cachefilter = new APT::CacheFilter::PackageNameMatchesRegEx(pattern);
else
cachefilter = new APT::CacheFilter::PackageNameMatchesFnmatch(pattern);
-#endif
filters.push_back(cachefilter);
}
}