]> granicus.if.org Git - graphviz/commitdiff
lefty: remove commented out code
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 18 Sep 2021 01:53:55 +0000 (18:53 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Sep 2021 18:00:08 +0000 (11:00 -0700)
cmd/lefty/aix_mods/exec.c
cmd/lefty/cs2l/cs2l.c
cmd/lefty/exec.c
cmd/lefty/ws/gtk/garray.c
cmd/lefty/ws/gtk/gbutton.c
cmd/lefty/ws/gtk/gscroll.c
cmd/lefty/ws/gtk/gview.c

index 7fb826b9fbeb97befbb02f58676f8a6187f3d0c5..6a2e623112f27884937bebffbde34010eb0139b1 100644 (file)
@@ -158,12 +158,6 @@ Tobj Eunit(Tobj co)
 
     jmp_buf eljbuf;
 
-#if 0
-    if (running && !Eoktorun) {
-       err(ERRRECRUN, ERR2, NULL, 0);
-       return NULL;
-    }
-#endif
     Eoktorun = FALSE;
 
     if (!co)
index 7c5cd75084a39cb96a1fe5b4a67b5ce058785b4a..824dc1ed310397f1cf158b2a7c20ffc41bbc34cc 100644 (file)
@@ -31,29 +31,5 @@ int C2Lopen (char *name, char *mode, FILE **ifp, FILE **ofp) {
 
 /* LEFTY builtin */
 int C2Lreadcsmessage (int argc, lvar_t *argv) {
-
-#if 0 /* not finished yet */
-    io_t *p;
-    int ioi, n;
-    Msg_call_t msg;
-    Tobj to;
-    int tm;
-
-    ioi = Tgetnumber (argv[0].o);
-    if (ioi < 0 || ioi >= ion)
-        return L_FAILURE;
-
-    p = &iop[ioi];
-    fseek (p->ofp, 0L, 1);
-    if ((n = msgrecv (fileno (p->ifp), &msg)) <= 0)
-        return L_FAILURE;
-    to = Ttable (6);
-    tm = Mpushmark (to);
-    Tinss (to, "id", Tinteger (MSG_CHANNEL_USR (msg.channel)));
-    Tinss (to, "pid", Tinteger (MSG_CHANNEL_SYS (msg.channel)));
-    rtno = to;
-    Mpopmark (tm);
-#endif
-
     return L_SUCCESS;
 }
index 9b33af78aebd66cc98342a447e1c9f3603002622..a4c2cd201c8153ee9eeb448e9a58502135a0030f 100644 (file)
@@ -168,12 +168,6 @@ Tobj Eunit (Tobj co) {
 
     jmp_buf eljbuf;
 
-#if 0
-    if (running && !Eoktorun) {
-        err (ERRRECRUN, ERR2, NULL, 0);
-        return NULL;
-    }
-#endif
     Eoktorun = FALSE;
 
     if (!co)
index fba5ee4b65c1e82cf9c0dd7d097734b17aff9e71..02710e8730e8b719f0eb14d6f0f04facda8ffd62 100644 (file)
@@ -66,15 +66,6 @@ int GAcreatewidget(Gwidget_t * parent, Gwidget_t * widget,
            c.red = attrp[ai].u.c.r * 257;
            c.green = attrp[ai].u.c.g * 257;
            c.blue = attrp[ai].u.c.b * 257;
-/*                             if (XAllocColor (
-                                      Gdisplay, DefaultColormap (Gdisplay, Gscreenn), &c
-                               )) {
-                                       if (color == 0)
-                                               ADD2ARGS (XtNbackground, c.pixel);
-                                       else
-                                               ADD2ARGS (XtNforeground, c.pixel);
-                                       }
-*/
            break;
        case G_ATTRWINDOWID:
            Gerr(POS, G_ERRCANNOTSETATTR1, "windowid");
@@ -240,6 +231,5 @@ int Gawsetmode(Gwidget_t * widget, int mode)
 int Gaworder(Gwidget_t * widget, void *data, Gawordercb func)
 {
 
-/*     (*func) (data, NULL);   */
     dolayout(widget, TRUE);
 }
index 305f3a3e18c0f3b173829ff9886bb199e11731e7..73ba612dd9fe490d038fb0422a5dfe829a29152c 100644 (file)
@@ -58,15 +58,6 @@ int GBcreatewidget(Gwidget_t * parent, Gwidget_t * widget,
            c.red = attrp[ai].u.c.r * 257;
            c.green = attrp[ai].u.c.g * 257;
            c.blue = attrp[ai].u.c.b * 257;
-           /*  if (XAllocColor (
-              Gdisplay, DefaultColormap (Gdisplay, Gscreenn), &c
-              )) {
-              if (color == 0)
-              ADD2ARGS (XtNbackground, c.pixel);
-              else
-              ADD2ARGS (XtNforeground, c.pixel);
-              }
-            */
            break;
        case G_ATTRWINDOWID:
            Gerr(POS, G_ERRCANNOTSETATTR1, "windowid");
index c04e32e4b6e8fb1ea8ecc002e5ff22007817870a..37161a6eed4d5241cb299826e94ec1caca10d0b0 100644 (file)
@@ -41,13 +41,6 @@ int GScreatewidget(Gwidget_t * parent, Gwidget_t * widget,
            Gerr(POS, G_ERRCANNOTSETATTR1, "childcenter");
            return -1;
        case G_ATTRMODE:
-           /*    if (Strcmp ("forcebars", attrp[ai].u.t) == 0)
-              ADD2ARGS (XtNforceBars, True);
-              else {
-              Gerr (POS, G_ERRBADATTRVALUE, attrp[ai].u.t);
-              return -1;
-              }
-            */
            break;
        case G_ATTRCOLOR:
            color = attrp[ai].u.c.index;
@@ -58,15 +51,6 @@ int GScreatewidget(Gwidget_t * parent, Gwidget_t * widget,
            c.red = attrp[ai].u.c.r * 257;
            c.green = attrp[ai].u.c.g * 257;
            c.blue = attrp[ai].u.c.b * 257;
-           /*   if (XAllocColor (
-              Gdisplay, DefaultColormap (Gdisplay, Gscreenn), &c
-              )) {
-              if (color == 0)
-              ADD2ARGS (XtNbackground, c.pixel);
-              else
-              ADD2ARGS (XtNforeground, c.pixel);
-              }
-            */
            break;
        case G_ATTRWINDOWID:
            Gerr(POS, G_ERRCANNOTSETATTR1, "windowid");
index e72abb237a444e911565506e5167e598db94959a..514494ff01176a05ffaa851cba6c3165d716cf03 100644 (file)
@@ -53,15 +53,6 @@ int GVcreatewidget(Gwidget_t * parent, Gwidget_t * widget,
            c.red = attrp[ai].u.c.r * 257;
            c.green = attrp[ai].u.c.g * 257;
            c.blue = attrp[ai].u.c.b * 257;
-           /* if (XAllocColor (
-              Gdisplay, DefaultColormap (Gdisplay, Gscreenn), &c
-              )) {
-              if (color == 0)
-              ADD2ARGS (XtNbackground, c.pixel);
-              else
-              ADD2ARGS (XtNforeground, c.pixel);
-              }
-            */
            break;
        case G_ATTRZORDER:
            Gerr(POS, G_ERRCANNOTSETATTR1, "zorder");
@@ -80,14 +71,6 @@ int GVcreatewidget(Gwidget_t * parent, Gwidget_t * widget,
            return -1;
        }
     }
-    /*  if (haveorigin) {
-       hints.x = po.x, hints.y = po.y;
-       hints.width = ps.x, hints.height = ps.y;
-       hints.flags = USPosition;
-       Glazyrealize (widget->w, TRUE, &hints);
-       } else
-       Glazyrealize (widget->w, FALSE, NULL);
-     */
 
     widget->w = gtk_window_new(GTK_WINDOW_TOPLEVEL);
     gtk_widget_set_events(widget->w, GDK_ALL_EVENTS_MASK);