From 27eb1d011413e647f048e917ae2133fd5f2b365c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 24 Sep 2021 17:38:03 -0700 Subject: [PATCH] lefty: remove 'Gerrno' Nothing ever reads this variable. --- cmd/lefty/g.c | 3 --- cmd/lefty/g.h | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/lefty/g.c b/cmd/lefty/g.c index a9c9ff51f..85986b926 100644 --- a/cmd/lefty/g.c +++ b/cmd/lefty/g.c @@ -28,7 +28,6 @@ char *Gdefaultfont; int Gneedredraw; int Gbuttonsdown; int Gerrflag; -int Gerrno; char *texts; int textn; @@ -831,7 +830,6 @@ void Gerr (char *file, int line, int errnum, ...) { va_list args; #ifdef FEATURE_X11 - Gerrno = errnum; if (!Gerrflag) return; @@ -844,7 +842,6 @@ void Gerr (char *file, int line, int errnum, ...) { #ifdef FEATURE_WIN32 char buf[256]; - Gerrno = errnum; if (!warnflag) return; diff --git a/cmd/lefty/g.h b/cmd/lefty/g.h index fa4ef2670..ddf768eed 100644 --- a/cmd/lefty/g.h +++ b/cmd/lefty/g.h @@ -477,8 +477,7 @@ extern int Gnocallbacks; #endif /* functions returning an int - return -1 if there's an error and - also set the Gerrno variable + return -1 if there's an error the rendering functions may return +1 if the graphical object is completely hidden @@ -548,7 +547,6 @@ void Gerr (char *, int, int, ...); #define G_ERRNOBITMAP 21 #define G_ERRCANNOTREADBITMAP 22 -extern int Gerrno; #endif /* _G_H */ #ifdef __cplusplus -- 2.40.0