summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index 32827a1..648796f 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -2498,12 +2498,6 @@ TextWorldChanged(
Tk_SetInternalBorderEx(textPtr->tkwin,
border + padX, border + padX, border + padY, border + padY);
- if (textPtr->setGrid) {
- Tk_SetGrid(textPtr->tkwin, textPtr->width, height,
- textPtr->charWidth, textPtr->charHeight);
- } else {
- Tk_UnsetGrid(textPtr->tkwin);
- }
TkTextRelayoutWindow(textPtr, mask);
}
@@ -2564,10 +2558,6 @@ TextEventProc(
textPtr->selBorder = NULL;
textPtr->selBorderWidthObj = NULL;
textPtr->selFgColorPtr = NULL;
- if (textPtr->setGrid) {
- Tk_UnsetGrid(textPtr->tkwin);
- textPtr->setGrid = 0;
- }
if (!(textPtr->flags & OPTIONS_FREED)) {
Tk_FreeConfigOptions(textPtr, textPtr->optionTable,
textPtr->tkwin);
@@ -2652,10 +2642,6 @@ TextCmdDeletedProc(
*/
if (!(textPtr->flags & DESTROYED)) {
- if (textPtr->setGrid) {
- Tk_UnsetGrid(textPtr->tkwin);
- textPtr->setGrid = 0;
- }
textPtr->flags |= DESTROYED;
Tk_DestroyWindow(tkwin);
}