Skip to content

Commit e6ba1ad

Browse files
author
Ekaterina Sokolova
committed
[PGPRO-8962] Remove unused variable.
Variable 'totalCount'. It appeared in c1df4cc and was already unnecessary. Tags: rum.
1 parent c40b86e commit e6ba1ad

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/rumdatapage.c

-6
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
10601060
RumItem maxLeftItem,
10611061
curItem;
10621062
RumItem item;
1063-
int totalCount = 0;
10641063
int maxItemIndex = btree->curitem;
10651064
/*
10661065
* Must have lpageCopy MAXALIGNed to use PG macros to access data in
@@ -1100,7 +1099,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
11001099
&item, &prevIptr, btree->rumstate, totalsize);
11011100

11021101
maxItemIndex++;
1103-
totalCount++;
11041102
maxItemSize = Max(maxItemSize, totalsize - prevTotalsize);
11051103
}
11061104

@@ -1112,7 +1110,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
11121110
totalsize = rumCheckPlaceToDataPageLeaf(btree->entryAttnum,
11131111
&item, &prevIptr, btree->rumstate, totalsize);
11141112

1115-
totalCount++;
11161113
maxItemSize = Max(maxItemSize, totalsize - prevTotalsize);
11171114
}
11181115

@@ -1134,7 +1131,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
11341131
2 * RumDataPageSize - 2 * maxItemSize - 2 * MAXIMUM_ALIGNOF)
11351132
{
11361133
maxItemIndex++;
1137-
totalCount++;
11381134
maxItemSize = Max(maxItemSize, newTotalsize - totalsize);
11391135
totalsize = newTotalsize;
11401136

@@ -1148,8 +1144,6 @@ dataSplitPageLeaf(RumBtree btree, Buffer lbuf, Buffer rbuf,
11481144
totalsize = rumCheckPlaceToDataPageLeaf(btree->entryAttnum,
11491145
&item, &prevIptr, btree->rumstate, totalsize);
11501146
maxItemIndex++;
1151-
1152-
totalCount++;
11531147
}
11541148
}
11551149

0 commit comments

Comments
 (0)