Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1e37cc6

Browse files
Remove unused variable
The low variable has not been used since it was added in d168b66 and can be safely removed. The variable is present in the Sedgewick paper "Analysis of Shellsort and Related Algorithms" as a parameter to the shellsort function, but our implementation does not use it. Remove to improve readability of the code. Author: Koki Nakamura <btnakamurakoukil@oss.nttdata.com> Discussion: https://postgr.es/m/8aeb7b3eda53ca4c65fbacf8f43628fb@oss.nttdata.com
1 parent a0be940 commit 1e37cc6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/access/heap/heapam.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8302,7 +8302,6 @@ index_delete_sort(TM_IndexDeleteOp *delstate)
83028302
{
83038303
TM_IndexDelete *deltids = delstate->deltids;
83048304
int ndeltids = delstate->ndeltids;
8305-
int low = 0;
83068305

83078306
/*
83088307
* Shellsort gap sequence (taken from Sedgewick-Incerpi paper).
@@ -8318,7 +8317,7 @@ index_delete_sort(TM_IndexDeleteOp *delstate)
83188317

83198318
for (int g = 0; g < lengthof(gaps); g++)
83208319
{
8321-
for (int hi = gaps[g], i = low + hi; i < ndeltids; i++)
8320+
for (int hi = gaps[g], i = hi; i < ndeltids; i++)
83228321
{
83238322
TM_IndexDelete d = deltids[i];
83248323
int j = i;

0 commit comments

Comments
 (0)