[Aptitude-svn-commit] r4223 - in branches/aptitude-0.3/aptitude: . src

Daniel Burrows dburrows at costa.debian.org
Sat Sep 24 05:13:26 UTC 2005


Author: dburrows
Date: Sat Sep 24 05:13:23 2005
New Revision: 4223

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/ui.cc
Log:
Pull out the scaffolding.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sat Sep 24 05:13:23 2005
@@ -1,5 +1,10 @@
 2005-09-23  Daniel Burrows  <dburrows at debian.org>
 
+	* src/ui.cc:
+
+	  Remove the no-longer-necessary do_undo() and undo_enabled()
+	  routines.
+
 	* src/apt_info_tree.h, src/pkg_tree.h:
 
 	  Derive apt_info_tree and pkg_tree from the new undo-supporting

Modified: branches/aptitude-0.3/aptitude/src/ui.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/ui.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/ui.cc	Sat Sep 24 05:13:23 2005
@@ -1431,18 +1431,6 @@
     }
 }
 
-static bool undo_enabled()
-{
-  return apt_undos->size()>0;
-}
-
-static bool do_undo()
-{
-  apt_undos->undo();
-  package_states_changed();
-  return true;
-}
-
 #ifdef WITH_RELOAD_CACHE
 static void do_reload_cache()
 {
@@ -2071,10 +2059,6 @@
   // display.
   package_states_changed.connect(sigc::ptr_fun(vscreen_update));
 
-  // Temporary until I get everything working properly.
-  undo_undo.connect(sigc::ptr_fun(&do_undo));
-  undo_undo_enabled.connect(sigc::ptr_fun(&undo_enabled));
-
   consume_errors.connect(sigc::ptr_fun(check_apt_errors));
 
   if(aptcfg->Exists(PACKAGE "::Theme"))



More information about the Aptitude-svn-commit mailing list