summaryrefslogtreecommitdiff
path: root/apt-pkg/metaindex.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-02-26 14:32:36 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-26 14:32:36 +0100
commit43b418a68d8e64b4f0220e730ccf7441e2796ea6 (patch)
tree6e084fe915a18490e1f7b662271e54b068d1007f /apt-pkg/metaindex.cc
parentda7de99f8473ae0ac90c90fad3eee80f5f72889a (diff)
Make metaIndex::GetNotBefore virtual
Diffstat (limited to 'apt-pkg/metaindex.cc')
-rw-r--r--apt-pkg/metaindex.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/apt-pkg/metaindex.cc b/apt-pkg/metaindex.cc
index 9a1e8a696..06db06f83 100644
--- a/apt-pkg/metaindex.cc
+++ b/apt-pkg/metaindex.cc
@@ -66,13 +66,6 @@ APT_PURE std::string metaIndex::GetReleaseNotes() const { return ReleaseNotes; }
APT_PURE signed short metaIndex::GetDefaultPin() const { return DefaultPin; }
APT_PURE bool metaIndex::GetSupportsAcquireByHash() const { return SupportsAcquireByHash; }
APT_PURE time_t metaIndex::GetValidUntil() const { return ValidUntil; }
-APT_PURE time_t metaIndex::GetNotBefore() const
-{
- debReleaseIndex const *const deb = dynamic_cast<debReleaseIndex const *>(this);
- if (deb != nullptr)
- return deb->GetNotBefore();
- return 0;
-}
APT_PURE time_t metaIndex::GetDate() const { return this->Date; }
APT_PURE metaIndex::TriState metaIndex::GetLoadedSuccessfully() const { return LoadedSuccessfully; }
APT_PURE std::string metaIndex::GetExpectedDist() const { return Dist; }