summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bltGrLegd.C2
-rw-r--r--src/bltGraph.C2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/bltGrLegd.C b/src/bltGrLegd.C
index 23205f2..45b59ac 100644
--- a/src/bltGrLegd.C
+++ b/src/bltGrLegd.C
@@ -538,7 +538,6 @@ LegendEventProc(ClientData clientData, XEvent *eventPtr)
Graph *graphPtr = legendPtr->graphPtr;
if (legendPtr->site == LEGEND_WINDOW) {
- Blt_DeleteWindowInstanceData(legendPtr->tkwin);
if (legendPtr->cmdToken != NULL) {
Tcl_DeleteCommandFromToken(graphPtr->interp,
legendPtr->cmdToken);
@@ -1697,7 +1696,6 @@ Blt_DestroyLegend(Graph *graphPtr)
if (tkwin != NULL) {
Tk_DeleteEventHandler(tkwin, ExposureMask | StructureNotifyMask,
LegendEventProc, graphPtr);
- Blt_DeleteWindowInstanceData(tkwin);
Tk_DestroyWindow(tkwin);
}
}
diff --git a/src/bltGraph.C b/src/bltGraph.C
index fbebfb3..7abaf5a 100644
--- a/src/bltGraph.C
+++ b/src/bltGraph.C
@@ -382,7 +382,6 @@ GraphEventProc(ClientData clientData, XEvent *eventPtr)
}
} else if (eventPtr->type == DestroyNotify) {
if (graphPtr->tkwin != NULL) {
- Blt_DeleteWindowInstanceData(graphPtr->tkwin);
graphPtr->tkwin = NULL;
Tcl_DeleteCommandFromToken(graphPtr->interp, graphPtr->cmdToken);
}
@@ -424,7 +423,6 @@ GraphInstCmdDeleteProc(ClientData clientData) /* Pointer to widget record. */
tkwin = graphPtr->tkwin;
graphPtr->tkwin = NULL;
- Blt_DeleteWindowInstanceData(tkwin);
Tk_DestroyWindow(tkwin);
}
}