summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
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);
}
}