]> granicus.if.org Git - graphviz/commitdiff
lneato on Windows: remove unused 'panic' function
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 18:20:18 +0000 (11:20 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 29 Mar 2022 05:53:59 +0000 (22:53 -0700)
cmd/lneato/mswin32/lneato.c

index 2e222455ee632ef4b1aea5f626dd4b7058e6f72a..8c7d1b31c69afe260322d90c93153e93634fe356 100644 (file)
@@ -24,7 +24,6 @@
 static char *shellpath;
 
 static char *buildpath (char *);
-static void panic (char *, int, char *, char *, ...);
 
 int WINAPI wWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
         PWSTR pCmdLine, int nCmdShow) {
@@ -96,15 +95,3 @@ static char *buildpath (char *file) {
     }
     return NULL;
 }
-
-static void panic (char *file, int line, char *func, char *fmt, ...) {
-    va_list args;
-
-    va_start(args, fmt);
-    {
-        char buf[256];
-        vsprintf (buf, fmt, args);
-        MessageBox ((HWND) NULL, buf, "dotty PANIC", MB_APPLMODAL);
-    }
-    abort ();
-}