From c4f0876fb8d8f84fc0a6fb6aee91de120718664c Mon Sep 17 00:00:00 2001 From: Thomas Munro Date: Wed, 7 Nov 2018 11:45:49 +1300 Subject: [PATCH] Remove set-but-unused variable. Clean-up for commit c24dcd0c. Reported-by: Andrew Dunstan Discussion: https://postgr.es/m/2d52ff4a-5440-f6f1-7806-423b0e6370cb%402ndQuadrant.com --- src/backend/storage/file/fd.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index 6611edbbd2..2d75773ef0 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -2004,15 +2004,11 @@ FileSync(File file, uint32 wait_event_info) off_t FileSize(File file) { - Vfd *vfdP; - Assert(FileIsValid(file)); DO_DB(elog(LOG, "FileSize %d (%s)", file, VfdCache[file].fileName)); - vfdP = &VfdCache[file]; - if (FileIsNotOpen(file)) { if (FileAccess(file) < 0)