diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-06-24 22:13:51 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-08-10 17:25:26 +0200 |
commit | 76b580bed96aaf0174ca81ba8ed2c4b54226ad85 (patch) | |
tree | 01a111a9c3ab8fa573665ddb3b5ad82d61203dd2 /apt-pkg/vendor.cc | |
parent | b0d408547734100bf86781615f546487ecf390d9 (diff) |
remove the longtime deprecated vendor{,list} stuff
History suggests that this comes from an earlier apt-secure
implementation, but never really became a thing, totally unused and
marked as deprecated for "ages" now. Especially as it did nothing even
if it would have been used (libapt itself didn't use it at all).
Diffstat (limited to 'apt-pkg/vendor.cc')
-rw-r--r-- | apt-pkg/vendor.cc | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/apt-pkg/vendor.cc b/apt-pkg/vendor.cc deleted file mode 100644 index d4add560e..000000000 --- a/apt-pkg/vendor.cc +++ /dev/null @@ -1,41 +0,0 @@ -#include<config.h> - -#include <apt-pkg/vendor.h> -#include <apt-pkg/configuration.h> - -#include <iostream> -#include <map> -#include <string> -#include <utility> -#include <vector> - -Vendor::Vendor(std::string VendorID, - std::string Origin, - std::vector<struct Vendor::Fingerprint *> *FingerprintList) -{ - this->VendorID = VendorID; - this->Origin = Origin; - for (std::vector<struct Vendor::Fingerprint *>::iterator I = FingerprintList->begin(); - I != FingerprintList->end(); ++I) - { - if (_config->FindB("Debug::Vendor", false)) - std::cerr << "Vendor \"" << VendorID << "\": Mapping \"" - << (*I)->Print << "\" to \"" << (*I)->Description << '"' << std::endl; - Fingerprints[(*I)->Print] = (*I)->Description; - } - delete FingerprintList; -} - -const std::string Vendor::LookupFingerprint(std::string Print) const -{ - std::map<std::string,std::string>::const_iterator Elt = Fingerprints.find(Print); - if (Elt == Fingerprints.end()) - return ""; - else - return (*Elt).second; -} - -APT_CONST bool Vendor::CheckDist(std::string /*Dist*/) -{ - return true; -} |