]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/configuration.cc
merged from debian-sid
[apt.git] / apt-pkg / contrib / configuration.cc
index 4de17e3e1933ee8966403c8ff1ac65f245f91814..d5334ae7205121f28c78869a91592a3418dee99d 100644 (file)
@@ -420,6 +420,18 @@ void Configuration::Clear(string const &Name, string const &Value)
       }
    }
      
+}
+                                                                       /*}}}*/
+// Configuration::Clear - Clear everything                             /*{{{*/
+// ---------------------------------------------------------------------
+void Configuration::Clear()
+{
+   const Configuration::Item *Top = Tree(0);
+   while( Top != 0 )
+   {
+      Clear(Top->FullTag());
+      Top = Top->Next;
+   }
 }
                                                                        /*}}}*/
 // Configuration::Clear - Clear an entire tree                         /*{{{*/