summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/fsdir.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-21 23:27:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-21 23:27:33 +0300
commitd181a2fb30ac73173fba851d4b2f7ca6f7d46ca0 (patch)
tree643c68086ee1258dbea0943f2928af626f3b9c81 /src/fs/virtfs/fsdir.cpp
parent5d6e4e9a5875d79173e9d2c867567dc26354240e (diff)
downloadplus-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.tar.gz
plus-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.tar.bz2
plus-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.tar.xz
plus-d181a2fb30ac73173fba851d4b2f7ca6f7d46ca0.zip
Remove useless variables.
Diffstat (limited to 'src/fs/virtfs/fsdir.cpp')
-rw-r--r--src/fs/virtfs/fsdir.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fs/virtfs/fsdir.cpp b/src/fs/virtfs/fsdir.cpp
index be980ae65..f32cbba4b 100644
--- a/src/fs/virtfs/fsdir.cpp
+++ b/src/fs/virtfs/fsdir.cpp
@@ -76,8 +76,7 @@ namespace FsDir
filename.c_str());
return nullptr;
}
- File *restrict const file = new File(&funcs, fd);
- return file;
+ return new File(&funcs, fd);
}
File *openRead(FsEntry *restrict const entry,
@@ -409,11 +408,10 @@ namespace FsDir
return 0;
}
#ifdef USE_FILE_FOPEN
- const int64_t pos = ftell(fd);
+ return ftell(fd);
#else // USE_FILE_FOPEN
- const int64_t pos = lseek(fd, 0, SEEK_CUR);
+ return lseek(fd, 0, SEEK_CUR);
#endif // USE_FILE_FOPEN
- return pos;
}
int seek(File *restrict const file,