(ArchiveFormat.CopyEntry): removed unused method.

This commit is contained in:
morkt 2016-08-02 05:17:25 +04:00
parent 36494147a5
commit 2ac291b1d8

View File

@ -171,8 +171,9 @@ namespace GameRes
/// </summary>
public void Extract (ArcFile file, Entry entry)
{
using (var reader = OpenEntry (file, entry))
CopyEntry (file, reader, entry);
using (var input = OpenEntry (file, entry))
using (var output = CreateFile (entry.Name))
input.CopyTo (output);
}
/// <summary>
@ -183,12 +184,6 @@ namespace GameRes
return arc.File.CreateStream (entry.Offset, entry.Size);
}
public virtual void CopyEntry (ArcFile arc, Stream input, Entry entry)
{
using (var output = CreateFile (entry.Name))
input.CopyTo (output);
}
/// <summary>
/// Create file corresponding to <paramref name="entry"/> in current directory and open it
/// for writing. Overwrites existing file, if any.