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

libdpkg: Remove unused code in error_unwind

Guillem Jover лет назад: 17
Родитель
Сommit
f5e9ae1950
2 измененных файлов с 4 добавлено и 2 удалено
  1. 4 0
      ChangeLog
  2. 0 2
      lib/ehandle.c

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2008-10-22  Guillem Jover  <guillem@debian.org>
+
+	* lib/ehandle.c (error_unwind): Remove unused cleanupentry code.
+
 2008-10-15  Guillem Jover  <guillem@debian.org>
 
 	* lib/dbmodify.c (modstatdb_shutdown): Use importanttmpfile on unlink

+ 0 - 2
lib/ehandle.c

@@ -152,11 +152,9 @@ static void run_cleanups(struct errorcontext *econ, int flagsetin) {
 }
 
 void error_unwind(int flagset) {
-  struct cleanupentry *cep;
   struct errorcontext *tecp;
 
   tecp= econtext;
-  cep= tecp->cleanups;
   econtext= tecp->next;
   run_cleanups(tecp,flagset);
   free(tecp);