From: Thomas Munro Date: Tue, 6 Nov 2018 22:45:49 +0000 (+1300) Subject: Remove set-but-unused variable. X-Git-Tag: REL_12_BETA1~1289 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4f0876fb8d8f84fc0a6fb6aee91de120718664c;p=postgresql 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 --- 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)