Преглед на файлове

libdpkg: Remove unused function ohshitvb

Guillem Jover преди 17 години
родител
ревизия
7d1245eff8
променени са 3 файла, в които са добавени 5 реда и са изтрити 11 реда
  1. 5 0
      ChangeLog
  2. 0 1
      lib/dpkg.h
  3. 0 10
      lib/ehandle.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2009-02-08  Guillem Jover  <guillem@debian.org>
+
+	* lib/dpkg.h (ohshitvb): Remove function prototype.
+	* lib/ehandle.c (ohshitvb): Remove function definition.
+
 2009-02-06  Guillem Jover  <guillem@debian.org>
 
 	* man/deb.5: Add detailed information of the currently supported

+ 0 - 1
lib/dpkg.h

@@ -172,7 +172,6 @@ struct varbuf;
 void ohshit(const char *fmt, ...) NONRETURNING PRINTFFORMAT(1, 2);
 void ohshitv(const char *fmt, va_list al) NONRETURNING;
 void ohshite(const char *fmt, ...) NONRETURNING PRINTFFORMAT(1, 2);
-void ohshitvb(struct varbuf*) NONRETURNING;
 void werr(const char *what) NONRETURNING;
 void warning(const char *fmt, ...) PRINTFFORMAT(1, 2);
 

+ 0 - 10
lib/ehandle.c

@@ -256,16 +256,6 @@ void print_error_fatal(const char *emsg, const char *contextstring) {
   fprintf(stderr, "%s: %s\n",thisname,emsg);
 }
 
-void ohshitvb(struct varbuf *vb) {
-  char *m;
-  varbufaddc(vb,0);
-  m= m_malloc(strlen(vb->buf));
-  strcpy(m,vb->buf);
-  errmsg= m;
-
-  run_error_handler();
-}
-
 void ohshitv(const char *fmt, va_list al) {
   vsnprintf(errmsgbuf,sizeof(errmsgbuf),fmt,al);
   errmsg= errmsgbuf;