Remove useless variable.
authorThomas Munro <tmunro@postgresql.org>
Tue, 16 Jun 2020 05:40:06 +0000 (17:40 +1200)
committerThomas Munro <tmunro@postgresql.org>
Tue, 16 Jun 2020 05:40:06 +0000 (17:40 +1200)
src/backend/storage/file/buffile.c

index b402f064bbf701450d51d73e299a984881fabc5e..3907349b691ea36b501fb0fc548f106649c957b1 100644 (file)
@@ -581,7 +581,6 @@ BufFileRead(BufFile *file, void *ptr, size_t size)
 void
 BufFileWrite(BufFile *file, void *ptr, size_t size)
 {
-       size_t          nwritten = 0;
        size_t          nthistime;
 
        Assert(!file->readOnly);
@@ -615,7 +614,6 @@ BufFileWrite(BufFile *file, void *ptr, size_t size)
                        file->nbytes = file->pos;
                ptr = (void *) ((char *) ptr + nthistime);
                size -= nthistime;
-               nwritten += nthistime;
        }
 }