From 525b767c35d678562398eb16ba2b72e513b878ce Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 9 Apr 2021 18:05:09 +0100 Subject: [PATCH] gtkwin: remove dead code in cut buffer handling. Commit d851df486f066b3 deleted a #if / #else / #endif on the grounds that the condition would now always be true, without also deleting the code inside the #else. Happily, the then-branch ended with a return, so it was a benign mistake - the erroneously left-in else-clause code was unreachable. But now Coverity has pointed it out, let's remove it. --- unix/gtkwin.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/unix/gtkwin.c b/unix/gtkwin.c index 7b6b912b..9ed8b431 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -2840,8 +2840,6 @@ static char *retrieve_cutbuffer(GtkFrontend *inst, int *nbytes) ptr = 0; } return ptr; - *nbytes = 0; - return NULL; } #endif /* NOT_X_WINDOWS */