]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed unnecessary branch
authorGuilhem Lavaux <lavaux@easynet.fr>
Sat, 14 Aug 1999 11:51:39 +0000 (11:51 +0000)
committerGuilhem Lavaux <lavaux@easynet.fr>
Sat, 14 Aug 1999 11:51:39 +0000 (11:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/stream.cpp

index 774f0b129b3e6eff63343979fd16f246b007e688..76a0b3fdbf15bc4930f34fdc694386a90335f5a1 100644 (file)
@@ -373,11 +373,7 @@ off_t wxStreamBuffer::Seek(off_t pos, wxSeekMode mode)
     if ( (diff > last_access) || (diff < 0) ) {
       // We must take into account the fact that we have read something
       // previously.
-      if (diff < 0)
-        ret_off = m_stream->OnSysSeek(-(last_access-diff), wxFromCurrent);
-           // lastaccess + abs(diff) = lastaccess - diff here
-      else
-        ret_off = m_stream->OnSysSeek(diff-last_access, wxFromCurrent);
+      ret_off = m_stream->OnSysSeek(diff-last_access, wxFromCurrent);
       ResetBuffer();
       return ret_off;
     } else {