summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorculler <culler>2021-04-21 12:13:33 (GMT)
committerculler <culler>2021-04-21 12:13:33 (GMT)
commit72e0feb39295be994a1f27da8a89e12605a8fbf5 (patch)
tree3e10988dfcc42a690dadcf9294a7f47bcab7015f /macosx
parent423b0ae36f245b340d14ab4ed3ec0fdf15dc71cc (diff)
downloadtk-72e0feb39295be994a1f27da8a89e12605a8fbf5.zip
tk-72e0feb39295be994a1f27da8a89e12605a8fbf5.tar.gz
tk-72e0feb39295be994a1f27da8a89e12605a8fbf5.tar.bz2
Clean up debugging code in tkMacOSXDraw.c
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXDraw.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 63decb7..bf6a4a7 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -1455,12 +1455,8 @@ end:
#ifdef TK_MAC_DEBUG_DRAWING
if (!canDraw && macDraw->winPtr != NULL) {
- TkWindow *winPtr = macDraw->winPtr;
-
- if (winPtr) {
- fprintf(stderr, "Cannot draw in %s - postponing.\n",
- Tk_PathName(winPtr));
- }
+ fprintf(stderr, "Cannot draw in %s - postponing.\n",
+ Tk_PathName(macDraw->winPtr));
}
#endif