diff options
author | Thomas Munro <tmunro@postgresql.org> | 2020-06-16 17:40:06 +1200 |
---|---|---|
committer | Thomas Munro <tmunro@postgresql.org> | 2020-06-16 17:40:06 +1200 |
commit | 4dd804a99cd66d8d336ce7060c91e23db3263c31 (patch) | |
tree | abfb46569f66c1272df72dd4648550958e44e5e4 /src | |
parent | f5d18862bbb327b67cd0f33f3d11351096080665 (diff) | |
download | postgresql-4dd804a99cd66d8d336ce7060c91e23db3263c31.tar.gz postgresql-4dd804a99cd66d8d336ce7060c91e23db3263c31.zip |
Remove useless variable.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/storage/file/buffile.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/storage/file/buffile.c b/src/backend/storage/file/buffile.c index b402f064bbf..3907349b691 100644 --- a/src/backend/storage/file/buffile.c +++ b/src/backend/storage/file/buffile.c @@ -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; } } |