From 07b93dcf8084bcae92fa1f33652723ca9c990db2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 22 May 2014 10:10:16 +0200 Subject: InputStream: make Seek() always absolute Remove the "whence" parameter that is not actually necessary, and only complicates the InputStream implementations. --- src/input/ProxyInputStream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input/ProxyInputStream.cxx') diff --git a/src/input/ProxyInputStream.cxx b/src/input/ProxyInputStream.cxx index 7b6e9f937..d65fb5df1 100644 --- a/src/input/ProxyInputStream.cxx +++ b/src/input/ProxyInputStream.cxx @@ -63,9 +63,9 @@ ProxyInputStream::Update() } bool -ProxyInputStream::Seek(offset_type new_offset, int whence, Error &error) +ProxyInputStream::Seek(offset_type new_offset, Error &error) { - bool success = input.Seek(new_offset, whence, error); + bool success = input.Seek(new_offset, error); CopyAttributes(); return success; } -- cgit v1.2.3