v1-0001-amcheck-Remove-unused-IndexCheckableCallback-type.patch

text/plain

Filename: v1-0001-amcheck-Remove-unused-IndexCheckableCallback-type.patch
Type: text/plain
Part: 0
Message: amcheck: Remove unused IndexCheckableCallback typedef

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: format-patch
Series: patch v1-0001
Subject: amcheck: Remove unused IndexCheckableCallback typedef.
File+
contrib/amcheck/verify_common.h 1 2
From 2d38d5cbb3d764f033d2e93b3eba1e4b735a6c28 Mon Sep 17 00:00:00 2001
From: Fujii Masao <fujii@postgresql.org>
Date: Fri, 4 Jul 2025 15:28:24 +0900
Subject: [PATCH v1] amcheck: Remove unused IndexCheckableCallback typedef.

Commit d70b17636dd introduced the IndexCheckableCallback typedef for
a callback function, but it was never used. This commit removes
the unused typedef to clean up dead code.
---
 contrib/amcheck/verify_common.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/contrib/amcheck/verify_common.h b/contrib/amcheck/verify_common.h
index e78adb68808..42ef9c20fe2 100644
--- a/contrib/amcheck/verify_common.h
+++ b/contrib/amcheck/verify_common.h
@@ -16,8 +16,7 @@
 #include "utils/relcache.h"
 #include "miscadmin.h"
 
-/* Typedefs for callback functions for amcheck_lock_relation_and_check */
-typedef void (*IndexCheckableCallback) (Relation index);
+/* Typedef for callback function for amcheck_lock_relation_and_check */
 typedef void (*IndexDoCheckCallback) (Relation rel,
 									  Relation heaprel,
 									  void *state,
-- 
2.49.0