'notdef' means it's not used, so we remove it
This commit is contained in:
@@ -2916,27 +2916,6 @@ paint_canvas(
|
||||
return stat;
|
||||
}
|
||||
|
||||
#ifdef notdef
|
||||
extern char*
|
||||
cm_get_relname()
|
||||
{
|
||||
char s[BUFSIZ];
|
||||
static char *CM_name;
|
||||
|
||||
/* we now make a composite name for the tool, combining
|
||||
* "Calendar Manager" with a release identifier
|
||||
*/
|
||||
if (CM_name == NULL) {
|
||||
sprintf(s, "%s", catgets(calendar->DT_catd, 1, 113, "Calendar"));
|
||||
CM_name = (char*)ckalloc(cm_strlen(s) + 2);
|
||||
|
||||
sprintf(CM_name, "%s", s);
|
||||
}
|
||||
|
||||
return (char*)CM_name;
|
||||
}
|
||||
#endif
|
||||
|
||||
extern Boolean
|
||||
in_range(time_t start, time_t stop, time_t tick) {
|
||||
if (tick >= start && tick <= stop)
|
||||
|
||||
@@ -324,34 +324,6 @@ RegisterIndirectChoice (
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef notdef
|
||||
static void
|
||||
RemoveIndirectChoice (clientAddress, connectionType)
|
||||
ARRAY8Ptr clientAddress;
|
||||
CARD16 connectionType;
|
||||
{
|
||||
ChoicePtr c, prev;
|
||||
|
||||
prev = 0;
|
||||
for (c = choices; c; c = c->next)
|
||||
{
|
||||
if (XdmcpARRAY8Equal (clientAddress, &c->client) &&
|
||||
connectionType == c->connectionType)
|
||||
{
|
||||
if (prev)
|
||||
prev->next = c->next;
|
||||
else
|
||||
choices = c->next;
|
||||
XdmcpDisposeARRAY8 (&c->client);
|
||||
XdmcpDisposeARRAY8 (&c->choice);
|
||||
free ((char *) c);
|
||||
return;
|
||||
}
|
||||
prev = c;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*ARGSUSED*/
|
||||
static void
|
||||
AddChooserHost (
|
||||
|
||||
@@ -105,15 +105,6 @@ XdmPrintDataHex(const char *s, const char *a, int l)
|
||||
Debug ("\n");
|
||||
}
|
||||
|
||||
#ifdef notdef /* not used */
|
||||
XdmPrintKey (s, k)
|
||||
char *s;
|
||||
XdmAuthKeyRec *k;
|
||||
{
|
||||
XdmPrintDataHex (s, (char *) k->data, 8);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef XDMCP
|
||||
void
|
||||
XdmPrintArray8Hex(const char *s, ARRAY8Ptr a)
|
||||
|
||||
@@ -521,32 +521,6 @@ DtMailEditor::attachDragMotionHandler(
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef notdef
|
||||
void
|
||||
DtMailEditor::attachDragSetup()
|
||||
{
|
||||
Boolean btn1_transfer;
|
||||
Widget widget = _myAttachArea->baseWidget();
|
||||
|
||||
DebugPrintf(3, "In DtMailEditor::attachDragSetup()\n");
|
||||
|
||||
XtAddEventHandler(widget, Button1MotionMask, FALSE,
|
||||
(XtEventHandler)&DtMailEditor::attachDragMotionHandler,
|
||||
(XtPointer)this);
|
||||
|
||||
XtVaGetValues(
|
||||
(Widget)XmGetXmDisplay(XtDisplayOfObject(widget)),
|
||||
"enableBtn1Transfer", &btn1_transfer,
|
||||
NULL);
|
||||
|
||||
if (!btn1_transfer) {
|
||||
XtAddEventHandler(widget, Button2MotionMask, FALSE,
|
||||
(XtEventHandler)&DtMailEditor::attachDragMotionHandler,
|
||||
(XtPointer)this);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
DtMailEditor::stripCRLF(char **buffer, const char * buf, const unsigned long len)
|
||||
{
|
||||
|
||||
@@ -431,9 +431,6 @@ DecrementInstanceCountAndExit(Widget w, XtPointer client_data,
|
||||
#ifdef TERMINAL_SERVER
|
||||
if (attrs.standAlone || !attrs.serverId) {
|
||||
#endif /* TERMINAL_SERVER */
|
||||
#ifdef notdef
|
||||
if (!attrs.server) {
|
||||
#endif /* notdef */
|
||||
if (InstanceCount <= 0) {
|
||||
/* use a timeout so that the toolkit can finish killing off
|
||||
* this widget...
|
||||
@@ -446,12 +443,6 @@ DecrementInstanceCountAndExit(Widget w, XtPointer client_data,
|
||||
ServerInstanceTerminated((Widget) client_data);
|
||||
}
|
||||
#endif /* TERMINAL_SERVER */
|
||||
#ifdef notdef
|
||||
} else {
|
||||
/* Here is where one would add the call into sunDtTermServer.c
|
||||
* implement a "lurking" dtterm server. */
|
||||
}
|
||||
#endif /* notdef */
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
|
||||
@@ -154,8 +154,3 @@ header file include flags, and macros (e.g. ABS).
|
||||
_NO_WM
|
||||
Enables testing code in WmPanel.c that allows it to be compiled
|
||||
with a test program outside of the window manager.
|
||||
|
||||
notdef
|
||||
Enables more complete resource comparison in WmResource.c which
|
||||
could make resource utilization more optimal. This is currently
|
||||
turned off to avoid some problems with the pixmap resources.
|
||||
|
||||
@@ -6219,29 +6219,6 @@ Boolean SimilarAppearanceData (AppearanceData *pAD1, AppearanceData *pAD2)
|
||||
{
|
||||
Boolean rval;
|
||||
|
||||
#ifdef notdef
|
||||
if ((pAD1->fontList == pAD2->fontList) &&
|
||||
(pAD1->background == pAD2->background) &&
|
||||
(pAD1->foreground == pAD2->foreground) &&
|
||||
(pAD1->backgroundPStr == pAD2->backgroundPStr) &&
|
||||
(pAD1->backgroundPixmap == pAD2->backgroundPixmap) &&
|
||||
(pAD1->bottomShadowColor == pAD2->bottomShadowColor) &&
|
||||
(pAD1->bottomShadowPStr == pAD2->bottomShadowPStr) &&
|
||||
(pAD1->bottomShadowPixmap == pAD2->bottomShadowPixmap) &&
|
||||
(pAD1->topShadowColor == pAD2->topShadowColor) &&
|
||||
(pAD1->topShadowPStr == pAD2->topShadowPStr) &&
|
||||
(pAD1->topShadowPixmap == pAD2->topShadowPixmap) &&
|
||||
(pAD1->activeBackground == pAD2->activeBackground) &&
|
||||
(pAD1->activeForeground == pAD2->activeForeground) &&
|
||||
(pAD1->activeBackgroundPStr == pAD2->activeBackgroundPStr) &&
|
||||
(pAD1->activeBackgroundPixmap == pAD2->activeBackgroundPixmap) &&
|
||||
(pAD1->activeBottomShadowColor == pAD2->activeBottomShadowColor) &&
|
||||
(pAD1->activeBottomShadowPStr == pAD2->activeBottomShadowPStr) &&
|
||||
(pAD1->activeBottomShadowPixmap == pAD2->activeBottomShadowPixmap) &&
|
||||
(pAD1->activeTopShadowColor == pAD2->activeTopShadowColor) &&
|
||||
(pAD1->activeTopShadowPStr == pAD2->activeTopShadowPStr) &&
|
||||
(pAD1->activeTopShadowPixmap == pAD2->activeTopShadowPixmap) )
|
||||
#else
|
||||
/*
|
||||
* !!! Should find out why all the Pixmap resources are unset !!!
|
||||
*/
|
||||
@@ -6261,7 +6238,6 @@ Boolean SimilarAppearanceData (AppearanceData *pAD1, AppearanceData *pAD2)
|
||||
(pAD1->activeBottomShadowPStr == pAD2->activeBottomShadowPStr) &&
|
||||
(pAD1->activeTopShadowColor == pAD2->activeTopShadowColor) &&
|
||||
(pAD1->activeTopShadowPStr == pAD2->activeTopShadowPStr) )
|
||||
#endif
|
||||
{
|
||||
rval = True;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user