diff options
author | Thomas E. Dickey <dickey@his.com> | 2024-03-10 14:31:35 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@his.com> | 2024-03-10 14:31:35 +0000 |
commit | 254e1f657496d21aef0c5e0a14ecca076a9ebcd5 (patch) | |
tree | 9ea174d35623421302e74006fc1f14ea25561fce | |
parent | c07b1728e38529ff8177e2075c2bae4724d3abe7 (diff) |
delete code which is never used
-rw-r--r-- | src/AsciiSink.c | 23 | ||||
-rw-r--r-- | src/Label.c | 9 | ||||
-rw-r--r-- | src/Text.c | 2 | ||||
-rw-r--r-- | src/TextSink.c | 17 | ||||
-rw-r--r-- | src/Viewport.c | 4 | ||||
-rw-r--r-- | src/XawIm.c | 30 |
6 files changed, 0 insertions, 85 deletions
diff --git a/src/AsciiSink.c b/src/AsciiSink.c index dc1c32c..1736a76 100644 --- a/src/AsciiSink.c +++ b/src/AsciiSink.c @@ -736,9 +736,6 @@ AsciiDoPaint(Widget w) XmuScanline *scan; XmuSegment *seg; XawTextPaintList *list = sink->text_sink.paint; -#if 0 - XawTextPaintStruct *base, *head; -#endif XawTextPaintStruct *paint = list->paint; XawTextProperty *property; XFontStruct *font = NULL; @@ -762,26 +759,6 @@ AsciiDoPaint(Widget w) (unsigned)(seg->x2 - seg->x1), (unsigned)(scan->next->y - scan->y)); - /* pass 2: optimize drawing list to avoid too much GC change requests */ - /* XXX this assumes there will not exist entities drawn over other - entities. */ -#if 0 - while (paint) { - base = paint; - head = paint->next; - while (head) { - if (head->property == paint->property) { - base->next = head->next; - head->next = paint->next; - paint->next = head; - paint = head; - } - base = head; - head = head->next; - } - paint = paint->next; - } -#endif if (paint && paint->next) { XawTextPaintStruct **paints; int i = 0, n_paints = 0; diff --git a/src/Label.c b/src/Label.c index ab7c6bb..bb82706 100644 --- a/src/Label.c +++ b/src/Label.c @@ -514,10 +514,6 @@ XawLabelRedisplay(Widget gw, XEvent *event, Region region) (*Superclass->core_class.expose)(gw, event, region); gc = XtIsSensitive(gw) ? w->label.normal_GC : w->label.gray_GC; -#ifdef notdef - if (region != NULL) - XSetRegion(XtDisplay(gw), gc, region); -#endif /*notdef*/ if (w->label.pixmap == None) { int len = w->label.label_len; @@ -589,11 +585,6 @@ XawLabelRedisplay(Widget gw, XEvent *event, Region region) XCopyArea(XtDisplay(gw), w->label.pixmap, XtWindow(gw), gc, 0, 0, w->label.label_width, w->label.label_height, w->label.label_x, w->label.label_y); - -#ifdef notdef - if (region != NULL) - XSetClipMask(XtDisplay(gw), gc, (Pixmap)None); -#endif /* notdef */ } static void @@ -474,9 +474,7 @@ static XtResource resources[] = { { toVal->size = sizeof(type); toVal->addr = (XPointer)address; } static XrmQuark QWrapNever, QWrapLine, QWrapWord; -#ifndef notdef static XrmQuark QScrollNever, QScrollWhenNeeded, QScrollAlways; -#endif static XrmQuark QJustifyLeft, QJustifyRight, QJustifyCenter, QJustifyFull; /*ARGSUSED*/ diff --git a/src/TextSink.c b/src/TextSink.c index b484310..8c85492 100644 --- a/src/TextSink.c +++ b/src/TextSink.c @@ -942,15 +942,6 @@ XawTextSinkPreparePaint(Widget w, int y, int line, XawTextPosition from, (w, y, line, from, to, highlight); } -#if 0 -/*ARGSUSED*/ -static void -PreparePaint(Widget w, int y, int line, XawTextPosition from, XawTextPosition to, - Bool highlight) -{ -} -#endif - void XawTextSinkDoPaint(Widget w) { @@ -959,14 +950,6 @@ XawTextSinkDoPaint(Widget w) (*cclass->text_sink_class.extension->DoPaint)(w); } -#if 0 -/*ARGSUSED*/ -static void -DoPaint(Widget w) -{ -} -#endif - Bool XawTextSinkEndPaint(Widget w) { diff --git a/src/Viewport.c b/src/Viewport.c index 122117d..885e48d 100644 --- a/src/Viewport.c +++ b/src/Viewport.c @@ -444,10 +444,6 @@ XawViewportChangeManaged(Widget widget) ((FormWidget)w, XtWidth(w), XtHeight(w), True /* True? */); } } - -#ifdef notdef - (*Superclass->composite_class.change_managed)(widget); -#endif } static void diff --git a/src/XawIm.c b/src/XawIm.c index fa786d2..5446c62 100644 --- a/src/XawIm.c +++ b/src/XawIm.c @@ -327,20 +327,6 @@ static Widget SetErrCnxt(Widget w, XIM xim) return(contextErrData->widget); } -#if 0 -static Widget -GetErrCnxt(XIM error_im) -{ - contextErrDataRec *contextErrData; - - if (XFindContext(XDisplayOfIM(error_im), (Window)error_im, errContext, - (XPointer*)&contextErrData)) { - return(NULL); - } - return(contextErrData->widget); -} -#endif - static void CloseIM(XawVendorShellExtPart *ve) { @@ -439,25 +425,9 @@ VendorShellDestroyed(Widget w, XtPointer cl_data _X_UNUSED, XtPointer ca_data _X return; } -#if 0 -static int -IOErrorHandler(XIM error_im) -{ - VendorShellWidget vw; - XawVendorShellExtPart * ve; - - if ((vw = (VendorShellWidget)GetErrCnxt(error_im)) == NULL - || (ve = GetExtPart(vw)) == NULL) return(0); - - DestroyAllIM(ve); - return(0); -} -#endif - /* * Attempt to open an input method */ - static void OpenIM(XawVendorShellExtPart *ve) { |