diff --git a/src/include/storage/lock.h b/src/include/storage/lock.h
index 4c49e3c6e69ad69ae37a4b222bc4b3eed49a9cf9..237e7d5dd9eaae4cd3e41f73ea59841203f555d7 100644
--- a/src/include/storage/lock.h
+++ b/src/include/storage/lock.h
@@ -526,8 +526,6 @@ extern void RemoveFromWaitQueue(PGPROC *proc, uint32 hashcode);
 extern Size LockShmemSize(void);
 extern LockData *GetLockStatusData(void);
 
-extern void ReportLockTableError(bool report);
-
 typedef struct xl_standby_lock
 {
 	TransactionId xid;			/* xid of holder of AccessExclusiveLock */