From d31f807a8d3f031d5efc5c3be9b76f9a9ac22d5d Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 26 Feb 2020 14:15:24 +0100 Subject: Remove various dynamic_cast uses, use virtual methods instead --- apt-pkg/metaindex.cc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'apt-pkg/metaindex.cc') diff --git a/apt-pkg/metaindex.cc b/apt-pkg/metaindex.cc index d0b3f5165..fe0d9c597 100644 --- a/apt-pkg/metaindex.cc +++ b/apt-pkg/metaindex.cc @@ -146,25 +146,16 @@ void metaIndex::swapLoad(metaIndex * const OldMetaIndex) /*{{{*/ bool metaIndex::IsArchitectureSupported(std::string const &arch) const /*{{{*/ { - debReleaseIndex const * const deb = dynamic_cast(this); - if (deb != NULL) - return deb->IsArchitectureSupported(arch); return true; } /*}}}*/ bool metaIndex::IsArchitectureAllSupportedFor(IndexTarget const &target) const/*{{{*/ { - debReleaseIndex const * const deb = dynamic_cast(this); - if (deb != NULL) - return deb->IsArchitectureAllSupportedFor(target); return true; } /*}}}*/ bool metaIndex::HasSupportForComponent(std::string const &component) const/*{{{*/ { - debReleaseIndex const * const deb = dynamic_cast(this); - if (deb != NULL) - return deb->HasSupportForComponent(component); return true; } /*}}}*/ -- cgit v1.2.3