summaryrefslogtreecommitdiff
path: root/apt-pkg/indexfile.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-02-26 16:31:25 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2019-02-26 16:31:25 +0100
commit3b13b8a0b79d625d2913518529a34e92b4f41539 (patch)
tree404745c04c1eb4548bd6151034229c98d97d36f6 /apt-pkg/indexfile.cc
parent4935c8af8acd8856211c0a527bf4dec4dace0d08 (diff)
parente1024dc0acf72b9615c0821f005364543775a58a (diff)
Merge branch 'pu/abi6'
Diffstat (limited to 'apt-pkg/indexfile.cc')
-rw-r--r--apt-pkg/indexfile.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc
index 85d0e87cd..a7290c653 100644
--- a/apt-pkg/indexfile.cc
+++ b/apt-pkg/indexfile.cc
@@ -86,32 +86,6 @@ std::string pkgIndexFile::SourceInfo(pkgSrcRecords::Parser const &/*Record*/,
return std::string();
}
/*}}}*/
-// IndexFile::TranslationsAvailable - Check if will use Translation /*{{{*/
-bool pkgIndexFile::TranslationsAvailable() {
- return (APT::Configuration::getLanguages().empty() != true);
-}
- /*}}}*/
-// IndexFile::CheckLanguageCode - Check the Language Code /*{{{*/
-bool pkgIndexFile::CheckLanguageCode(const char * const Lang)
-{
- if (strlen(Lang) == 2 || (strlen(Lang) == 5 && Lang[2] == '_'))
- return true;
-
- if (strcmp(Lang,"C") != 0)
- _error->Warning("Wrong language code %s", Lang);
-
- return false;
-}
- /*}}}*/
-// IndexFile::LanguageCode - Return the Language Code /*{{{*/
-std::string pkgIndexFile::LanguageCode() {
-APT_IGNORE_DEPRECATED_PUSH
- if (TranslationsAvailable() == false)
- return "";
- return APT::Configuration::getLanguages()[0];
-APT_IGNORE_DEPRECATED_POP
-}
- /*}}}*/
// IndexTarget - Constructor /*{{{*/
IndexTarget::IndexTarget(std::string const &MetaKey, std::string const &ShortDesc,