summaryrefslogtreecommitdiffstats
path: root/generic/tkTextBTree.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-05 08:26:44 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-05 08:26:44 (GMT)
commit348370937c430973633246eaf91de8cee1bde7d0 (patch)
tree88b248e20c7f61e46bbda82c21dab1fcd66cff4e /generic/tkTextBTree.c
parentce0c892ca83196190690241027b28e43514254d3 (diff)
parent121af720bc29f65b64fcdcf520cb2d00368eb258 (diff)
downloadtk-348370937c430973633246eaf91de8cee1bde7d0.zip
tk-348370937c430973633246eaf91de8cee1bde7d0.tar.gz
tk-348370937c430973633246eaf91de8cee1bde7d0.tar.bz2
Merge 8.6
Diffstat (limited to 'generic/tkTextBTree.c')
-rw-r--r--generic/tkTextBTree.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/generic/tkTextBTree.c b/generic/tkTextBTree.c
index a6a5e35..8feb2a2 100644
--- a/generic/tkTextBTree.c
+++ b/generic/tkTextBTree.c
@@ -4169,7 +4169,7 @@ Rebalance(
Node *otherPtr;
Node *halfwayNodePtr = NULL; /* Initialization needed only */
TkTextLine *halfwayLinePtr = NULL; /* to prevent cc warnings. */
- int totalChildren, firstChildren, i;
+ int totalChildren, firstChildren;
/*
* Too few children for this node. If this is the root then, it's
@@ -4230,8 +4230,6 @@ Rebalance(
otherPtr->children.linePtr = NULL;
}
if (nodePtr->level == 0) {
- TkTextLine *linePtr;
-
for (linePtr = nodePtr->children.linePtr, i = 1;
linePtr->nextPtr != NULL;
linePtr = linePtr->nextPtr, i++) {
@@ -4246,8 +4244,6 @@ Rebalance(
i++;
}
} else {
- Node *childPtr;
-
for (childPtr = nodePtr->children.nodePtr, i = 1;
childPtr->nextPtr != NULL;
childPtr = childPtr->nextPtr, i++) {