summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-02-26 13:20:21 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2019-02-26 16:31:20 +0100
commit30d563c7a7ac68a0d2c1e765a1a43687d406c0d5 (patch)
tree2542b69cf0550fbd97b07ec6fc135be0127f303a
parent36adf6dd0504d7b280e93f5206d93ee5f7f13e84 (diff)
sourceslist: Remove deprecated AddVolatileFiles() variant
-rw-r--r--apt-pkg/sourcelist.cc17
-rw-r--r--apt-pkg/sourcelist.h1
-rw-r--r--debian/libapt-pkg6.0.symbols1
3 files changed, 0 insertions, 19 deletions
diff --git a/apt-pkg/sourcelist.cc b/apt-pkg/sourcelist.cc
index 5be8fbc0c..eef4d8a7f 100644
--- a/apt-pkg/sourcelist.cc
+++ b/apt-pkg/sourcelist.cc
@@ -623,21 +623,4 @@ void pkgSourceList::AddVolatileFiles(CommandLine &CmdL, std::vector<std::string>
return false;
});
}
-void pkgSourceList::AddVolatileFiles(CommandLine &CmdL, std::vector<const char*> * const VolatileCmdL)
-{
- std::remove_if(CmdL.FileList + 1, CmdL.FileList + 1 + CmdL.FileSize(), [&](char const * const I) {
- if (I != nullptr && (I[0] == '/' || (I[0] == '.' && (I[1] == '\0' || (I[1] == '.' && (I[2] == '\0' || I[2] == '/')) || I[1] == '/'))))
- {
- if (AddVolatileFile(I))
- {
- if (VolatileCmdL != nullptr)
- VolatileCmdL->push_back(I);
- }
- else
- _error->Error(_("Unsupported file %s given on commandline"), I);
- return true;
- }
- return false;
- });
-}
/*}}}*/
diff --git a/apt-pkg/sourcelist.h b/apt-pkg/sourcelist.h
index fedf90fa6..255c99868 100644
--- a/apt-pkg/sourcelist.h
+++ b/apt-pkg/sourcelist.h
@@ -131,7 +131,6 @@ class pkgSourceList
void AddVolatileFile(pkgIndexFile * const File);
bool AddVolatileFile(std::string const &File);
bool AddVolatileFile(std::string const &File, std::vector<std::string> * const VolatileCmdL);
- APT_DEPRECATED_MSG("Use the overload with string-vector") void AddVolatileFiles(CommandLine &CmdL, std::vector<const char*> * const VolatileCmdL);
void AddVolatileFiles(CommandLine &CmdL, std::vector<std::string> * const VolatileCmdL);
/** @return list of files registered with #AddVolatileFile */
diff --git a/debian/libapt-pkg6.0.symbols b/debian/libapt-pkg6.0.symbols
index f7bb2eff1..3f47dd139 100644
--- a/debian/libapt-pkg6.0.symbols
+++ b/debian/libapt-pkg6.0.symbols
@@ -1375,7 +1375,6 @@ libapt-pkg.so.6.0 libapt-pkg6.0 #MINVER#
(c++)"pkgDepCache::Policy::GetPriority(pkgCache::VerIterator const&, bool)@APTPKG_6.0" 1.1~exp15
(c++)"pkgPackageManager::CheckRBreaks(pkgCache::PkgIterator const&, pkgCache::DepIterator, char const*)@APTPKG_6.0" 1.1~exp11
(c++)"pkgPolicy::GetPriority(pkgCache::VerIterator const&, bool)@APTPKG_6.0" 1.1~exp9
- (c++)"pkgSourceList::AddVolatileFiles(CommandLine&, std::vector<char const*, std::allocator<char const*> >*)@APTPKG_6.0" 1.1~exp15
(c++)"pkgSourceList::AddVolatileFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@APTPKG_6.0" 1.1~exp15
(c++)"pkgVersionMatch::VersionMatches(pkgCache::VerIterator)@APTPKG_6.0" 1.1~exp9
(c++)"GetSrvRecords(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::vector<SrvRec, std::allocator<SrvRec> >&)@APTPKG_6.0" 1.1~exp15