aboutsummaryrefslogtreecommitdiff
path: root/src/streams.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-07-26 22:28:56 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-07-26 22:46:28 +0300
commit7b3851e9473e74043342d414c056c2ef87c2f261 (patch)
treeca24eb1f7f909a6665776e83ff22e8e91ddd3276 /src/streams.h
parent31d2b4098a9e4ee9a694ba1ad42829637cbcf3c6 (diff)
refactor: Drop unused CBufferedFile::Seek()
Diffstat (limited to 'src/streams.h')
-rw-r--r--src/streams.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/streams.h b/src/streams.h
index e1d1b0eab2..6ce8065da8 100644
--- a/src/streams.h
+++ b/src/streams.h
@@ -814,18 +814,6 @@ public:
return true;
}
- bool Seek(uint64_t nPos) {
- long nLongPos = nPos;
- if (nPos != (uint64_t)nLongPos)
- return false;
- if (fseek(src, nLongPos, SEEK_SET))
- return false;
- nLongPos = ftell(src);
- nSrcPos = nLongPos;
- nReadPos = nLongPos;
- return true;
- }
-
//! prevent reading beyond a certain position
//! no argument removes the limit
bool SetLimit(uint64_t nPos = std::numeric_limits<uint64_t>::max()) {