]> granicus.if.org Git - graphviz/commitdiff
tclpkg/gdtclft/gdtclft.c: [nfc] remove commented out code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Dec 2021 21:34:26 +0000 (13:34 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Dec 2021 18:18:44 +0000 (10:18 -0800)
tclpkg/gdtclft/gdtclft.c

index f495fe6e481d4b50216efe4742c2c652c7434a6e..1b2004bfc6f675cb3680b16c526ca3baea3fc397 100644 (file)
@@ -607,13 +607,6 @@ tclGdWriteCmd(Tcl_Interp * interp, int argc, Tcl_Obj * CONST objv[])
           color for the B&W wbmp image. */
        int foreground = gdImageColorClosest(im, 0, 0, 0);
        gdImageWBMP(im, foreground, filePtr);
-#if 0
-/* libgd only supports reading xbm format */
-#ifdef HAVE_GD_XPM
-    } else if (strcmp(&cmd[5], "XBM") == 0) {
-       gdImageXbm(im, filePtr);
-#endif
-#endif
     } else {
        /* cannot happen - but would result in an empty output file */
     }
@@ -677,13 +670,8 @@ tclGdColorCmd(Tcl_Interp * interp, int argc, Tcl_Obj * CONST objv[])
                    if (Tcl_GetIntFromObj(interp, objv[i + 4], &args[i]) !=
                        TCL_OK) {
 
-
-#if 0
-                       if (args[i] < 0 || args[i] > 255) {
-#else
 /* gd text uses -ve colors to turn off anti-aliasing */
                        if (args[i] < -255 || args[i] > 255) {
-#endif
                            Tcl_SetResult(interp,
                                          "argument out of range 0-255",
                                          TCL_STATIC);