Explorar o código

libdpkg: Remove set_error_display()

If the code needs to set a different error printer then it should push
a new error context instead.
Guillem Jover %!s(int64=15) %!d(string=hai) anos
pai
achega
de42418d9c
Modificáronse 3 ficheiros con 0 adicións e 12 borrados
  1. 0 10
      lib/dpkg/ehandle.c
  2. 0 1
      lib/dpkg/ehandle.h
  3. 0 1
      lib/dpkg/libdpkg.Versions

+ 0 - 10
lib/dpkg/ehandle.c

@@ -84,16 +84,6 @@ static struct {
   void *args[20];
 } emergency;
 
-static void set_error_printer(struct error_context *ec,
-                              error_printer *printerror,
-                              const char *contextstring);
-
-void set_error_display(error_printer *printerror,
-                       const char *contextstring) {
-  assert(econtext);
-  set_error_printer(econtext, printerror, contextstring);
-}
-
 static void DPKG_ATTR_NORET
 run_error_handler(void)
 {

+ 0 - 1
lib/dpkg/ehandle.h

@@ -53,7 +53,6 @@ void push_error_context_jump(jmp_buf *jbufp, error_printer *printerror,
 void push_error_context_func(error_handler *func, error_printer *printerror,
                              const char *contextstring);
 void error_unwind(int flagset);
-void set_error_display(error_printer *printerror, const char *contextstring);
 
 void push_cleanup(void (*f1)(int argc, void **argv), int flagmask1,
                   void (*f2)(int argc, void **argv), int flagmask2,

+ 0 - 1
lib/dpkg/libdpkg.Versions

@@ -11,7 +11,6 @@ LIBDPKG_PRIVATE {
 	# Error handling
 	push_error_context_jump;
 	push_error_context_func;
-	set_error_display;
 	print_fatal_error;
 	catch_fatal_error;
 	push_checkpoint;