]> granicus.if.org Git - postgresql/commitdiff
Remove set-but-unused variable.
authorThomas Munro <tmunro@postgresql.org>
Tue, 6 Nov 2018 22:45:49 +0000 (11:45 +1300)
committerThomas Munro <tmunro@postgresql.org>
Tue, 6 Nov 2018 23:06:43 +0000 (12:06 +1300)
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

index 6611edbbd2c206e803d6e23d3c4717de37e9e706..2d75773ef02b5e95b10b875d61c7026a90590f06 100644 (file)
@@ -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)