Просмотр исходного кода

remove useless GetInitialize method

David Kalnischkies лет назад: 16
Родитель
Сommit
e56aac77a4
2 измененных файлов с 2 добавлено и 12 удалено
  1. 0 11
      cmdline/apt-cache.cc
  2. 2 1
      debian/changelog

+ 0 - 11
cmdline/apt-cache.cc

@@ -1781,15 +1781,6 @@ bool ShowHelp(CommandLine &Cmd)
    return true;
 }
 									/*}}}*/
-// CacheInitialize - Initialize things for apt-cache			/*{{{*/
-// ---------------------------------------------------------------------
-/* */
-void CacheInitialize()
-{
-   _config->Set("quiet",0);
-   _config->Set("help",false);
-}
-									/*}}}*/
 int main(int argc,const char *argv[])					/*{{{*/
 {
    CommandLine::Args Args[] = {
@@ -1841,8 +1832,6 @@ int main(int argc,const char *argv[])					/*{{{*/
                                     {"madison",&Madison},
                                     {0,0}};
 
-   CacheInitialize();
-
    // Set up gettext support
    setlocale(LC_ALL,"");
    textdomain(PACKAGE);

+ 2 - 1
debian/changelog

@@ -16,6 +16,7 @@ apt (0.8.1) UNRELEASED; urgency=low
   [ David Kalnischkies ]
   * cmdline/apt-cache.cc:
     - show in madison command again also source packages (LP: #614589)
+    - remove useless GetInitialize method
   * cmdline/apt-get.cc:
     - remove direct calls of ReadMainList and use the wrapper instead
       to protect us from useless re-reads and two-times notice display
@@ -26,7 +27,7 @@ apt (0.8.1) UNRELEASED; urgency=low
   * apt-pkg/contrib/fileutl.cc:
     - apply SilentlyIgnore also on files without an extension
 
- -- David Kalnischkies <kalnischkies@gmail.com>  Sat, 28 Aug 2010 17:52:36 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com>  Sat, 28 Aug 2010 17:53:00 +0200
 
 apt (0.8.0) unstable; urgency=low