From: Matthew Fernandez Date: Sat, 26 Mar 2022 18:20:18 +0000 (-0700) Subject: lneato on Windows: remove unused 'panic' function X-Git-Tag: 4.0.0~152^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c986a034623ccdd71b9e8fd8909b343b5a1df9b3;p=graphviz lneato on Windows: remove unused 'panic' function --- diff --git a/cmd/lneato/mswin32/lneato.c b/cmd/lneato/mswin32/lneato.c index 2e222455e..8c7d1b31c 100644 --- a/cmd/lneato/mswin32/lneato.c +++ b/cmd/lneato/mswin32/lneato.c @@ -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 (); -}