]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
drop ER_SETFOCUS event result
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 10 Mar 2025 10:57:13 +0000 (11:57 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 10 Mar 2025 13:29:06 +0000 (14:29 +0100)
It's no longer used and the uninitialized u.focus field is triggering
errors in static analysis.

newt_pr.h

index 5d60ebebe2fa1cc7e502e1e040abfd6c3a1682dd..98f41e546a592057cd659b5e04cd877685e29138 100644 (file)
--- a/newt_pr.h
+++ b/newt_pr.h
@@ -46,13 +46,9 @@ struct newtComponent_struct {
     void * data;
 } ;
 
-enum eventResultTypes { ER_IGNORED, ER_SWALLOWED, ER_EXITFORM, ER_SETFOCUS,
-                       ER_NEXTCOMP };
+enum eventResultTypes { ER_IGNORED, ER_SWALLOWED, ER_EXITFORM, ER_NEXTCOMP };
 struct eventResult {
     enum eventResultTypes result;
-    union {
-       newtComponent focus;
-    } u;
 };
 
 enum eventTypes { EV_FOCUS, EV_UNFOCUS, EV_KEYPRESS, EV_MOUSE };