remove unneeded seek

This commit is contained in:
Glenn Maynard
2004-06-06 23:18:38 +00:00
parent 53164e9b1f
commit 1aa5f95d09
+1 -3
View File
@@ -96,10 +96,8 @@ unsigned int RageFileStore::CopyRangeTo2(BufferedTransformation &target, unsigne
int newPosition = current + (streamoff)begin;
if( newPosition >= m_file.GetFileSize() )
{
m_file.Seek(current);
return 0; // don't try to seek beyond the end of file
}
m_file.Seek(newPosition);
try
{