summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-pkg/deb/debindexfile.cc2
-rw-r--r--apt-pkg/deb/debindexfile.h3
-rw-r--r--apt-pkg/indexfile.cc5
3 files changed, 3 insertions, 7 deletions
diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc
index e4ceebff2..43317d314 100644
--- a/apt-pkg/deb/debindexfile.cc
+++ b/apt-pkg/deb/debindexfile.cc
@@ -246,7 +246,7 @@ pkgCache::PkgFileIterator debDebPkgFileIndex::FindInCache(pkgCache &Cache) const
return File;
}
-std::string debDebPkgFileIndex::ArchiveInfo_impl(pkgCache::VerIterator const &Ver) const
+std::string debDebPkgFileIndex::ArchiveInfo(pkgCache::VerIterator const &Ver) const
{
std::string Res = IndexFileName() + " ";
Res.append(Ver.ParentPkg().Name()).append(" ");
diff --git a/apt-pkg/deb/debindexfile.h b/apt-pkg/deb/debindexfile.h
index 222fed229..3ef9f6b0c 100644
--- a/apt-pkg/deb/debindexfile.h
+++ b/apt-pkg/deb/debindexfile.h
@@ -144,8 +144,7 @@ public:
explicit debDebPkgFileIndex(std::string const &DebFile);
virtual ~debDebPkgFileIndex();
- //FIXME: use proper virtual-handling on next ABI break
- APT_HIDDEN std::string ArchiveInfo_impl(pkgCache::VerIterator const &Ver) const;
+ std::string ArchiveInfo(pkgCache::VerIterator const &Ver) const override;
};
class debDscFileIndex : public pkgDebianIndexRealFile
diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc
index a7290c653..ef3486ab8 100644
--- a/apt-pkg/indexfile.cc
+++ b/apt-pkg/indexfile.cc
@@ -65,11 +65,8 @@ pkgIndexFile::pkgIndexFile(bool const Trusted) : /*{{{*/
}
/*}}}*/
// IndexFile::ArchiveInfo - Stub /*{{{*/
-std::string pkgIndexFile::ArchiveInfo(pkgCache::VerIterator const &Ver) const
+std::string pkgIndexFile::ArchiveInfo(pkgCache::VerIterator const &) const
{
- debDebPkgFileIndex const * const debfile = dynamic_cast<debDebPkgFileIndex const*>(this);
- if (debfile != nullptr)
- return debfile->ArchiveInfo_impl(Ver);
return std::string();
}
/*}}}*/