From: Eric S. Raymond Date: Wed, 13 Sep 2006 20:24:26 +0000 (+0000) Subject: Remove some dead code. X-Git-Tag: 2.0~278 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=63531cb25c72858ed465453c6ead096a8c9a1d20;p=super-star-trek.git Remove some dead code. --- diff --git a/src/xio.c b/src/xio.c index 94d3217..9567099 100644 --- a/src/xio.c +++ b/src/xio.c @@ -28,7 +28,7 @@ String fallback[] = { "*Shields.fromHoriz: Torpedo", "*Damages.fromHoriz: Shields", "*Crystals.fromHoriz: Damages", - "*Deathray.fromHoriz: Damages", + "*Deathray.fromHoriz: Crystals", "*Mayday.fromHoriz: Deathray", "*Abandon.fromHoriz: Mayday", // Planet row @@ -109,7 +109,7 @@ int main(int argc, char **argv) /* the command window */ text = XtVaCreateManagedWidget("text", asciiTextWidgetClass, form, NULL); - + XtVaSetValues(text, XtNeditType,XawtextRead, XtNdisplayCaret,False, NULL); /* The button panel */ buttons = XtVaCreateManagedWidget("form", formWidgetClass, form, @@ -123,10 +123,6 @@ int main(int argc, char **argv) if (cp->callback) XtAddCallback (cp->widget, XtNcallback, cp->callback, NULL); } - /* sample text so the widget will be identifiable */ - XtVaSetValues(text, XtNtype, XawAsciiString, - XtNstring, "Command window", NULL); - XtVaSetValues(text, XtNeditType, XawtextRead, XtNdisplayCaret, False, NULL); XtRealizeWidget(toplevel); XtAppMainLoop(app_context); /* loop may be interrupted */