mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +08:00
(ArchiveFormat.CopyEntry): removed unused method.
This commit is contained in:
parent
36494147a5
commit
2ac291b1d8
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user