diff options
author | fvogel <fvogelnew1@free.fr> | 2024-08-29 20:28:49 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2024-08-29 20:28:49 (GMT) |
commit | 1b641c64b7784f09b0fb7e8b034f5b052ecaba3c (patch) | |
tree | 698c5c2a8b75a27225baad983b6d9623029691bc | |
parent | 5a596d1786283646379562f18a4e97fc82d5676e (diff) | |
download | tk-1b641c64b7784f09b0fb7e8b034f5b052ecaba3c.zip tk-1b641c64b7784f09b0fb7e8b034f5b052ecaba3c.tar.gz tk-1b641c64b7784f09b0fb7e8b034f5b052ecaba3c.tar.bz2 |
Remove OK_TO_LOG that became useless since [1dfe4fe9].
-rw-r--r-- | generic/tkTextDisp.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index 42ff3f2..dc8a5fb 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -24,8 +24,6 @@ #include "tkMacOSXInt.h" #endif -#define OK_TO_LOG 1 - /* * "Calculations of line pixel heights and the size of the vertical * scrollbar." @@ -205,20 +203,13 @@ typedef struct TextStyle { /* * Macros to make debugging/testing logging a little easier. - * - * On OSX 10.14 Drawing procedures are sometimes run because the system has - * decided to redraw the window. This can corrupt the data that a test is - * trying to collect. So we don't write to the logging variables when the - * drawing procedure is being run that way. Other systems can always log. */ #define LOG(toVar,what) \ - if (OK_TO_LOG) \ - Tcl_SetVar2(textPtr->interp, toVar, NULL, (what), \ - TCL_GLOBAL_ONLY|TCL_APPEND_VALUE|TCL_LIST_ELEMENT) + Tcl_SetVar2(textPtr->interp, toVar, NULL, (what), \ + TCL_GLOBAL_ONLY|TCL_APPEND_VALUE|TCL_LIST_ELEMENT) #define CLEAR(var) \ - if (OK_TO_LOG) \ - Tcl_SetVar2(interp, var, NULL, "", TCL_GLOBAL_ONLY) + Tcl_SetVar2(interp, var, NULL, "", TCL_GLOBAL_ONLY) /* * The following structure describes one line of the display, which may be |