Remove unused 'cur_skey' argument from IndexScanOK()
authorHeikki Linnakangas <[email protected]>
Fri, 16 Aug 2024 10:13:43 +0000 (13:13 +0300)
committerHeikki Linnakangas <[email protected]>
Fri, 16 Aug 2024 10:13:43 +0000 (13:13 +0300)
Commit a78fcfb51243 removed the last use of it.

Author: Hugo Zhang, Aleksander Alekseev
Reviewed-by: Daniel Gustafsson
Discussion: https://www.postgresql.org/message-id/NT0PR01MB129459E243721B954611938F9CDD2%40NT0PR01MB1294.CHNPR01.prod.partner.outlook.cn

src/backend/utils/cache/catcache.c

index 111d8a280a092c77bba4ddc171a706fd272ae842..492a033aa2ccea3c47cc3b4b6cefa7b4d2d6a126 100644 (file)
@@ -1194,7 +1194,7 @@ InitCatCachePhase2(CatCache *cache, bool touch_index)
  *     catalogs' indexes.
  */
 static bool
-IndexScanOK(CatCache *cache, ScanKey cur_skey)
+IndexScanOK(CatCache *cache)
 {
    switch (cache->id)
    {
@@ -1483,7 +1483,7 @@ SearchCatCacheMiss(CatCache *cache,
 
        scandesc = systable_beginscan(relation,
                                      cache->cc_indexoid,
-                                     IndexScanOK(cache, cur_skey),
+                                     IndexScanOK(cache),
                                      NULL,
                                      nkeys,
                                      cur_skey);
@@ -1803,7 +1803,7 @@ SearchCatCacheList(CatCache *cache,
 
            scandesc = systable_beginscan(relation,
                                          cache->cc_indexoid,
-                                         IndexScanOK(cache, cur_skey),
+                                         IndexScanOK(cache),
                                          NULL,
                                          nkeys,
                                          cur_skey);