1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

gtkwin: remove dead code in cut buffer handling.

Commit d851df486f 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.
This commit is contained in:
Simon Tatham 2021-04-09 18:05:09 +01:00
parent 52fa23c7fe
commit 525b767c35

View File

@ -2840,8 +2840,6 @@ static char *retrieve_cutbuffer(GtkFrontend *inst, int *nbytes)
ptr = 0;
}
return ptr;
*nbytes = 0;
return NULL;
}
#endif /* NOT_X_WINDOWS */