mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(ArchiveFormat.CopyEntry): removed unused method.
This commit is contained in:
@@ -171,8 +171,9 @@ namespace GameRes
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Extract (ArcFile file, Entry entry)
|
public void Extract (ArcFile file, Entry entry)
|
||||||
{
|
{
|
||||||
using (var reader = OpenEntry (file, entry))
|
using (var input = OpenEntry (file, entry))
|
||||||
CopyEntry (file, reader, entry);
|
using (var output = CreateFile (entry.Name))
|
||||||
|
input.CopyTo (output);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -183,12 +184,6 @@ namespace GameRes
|
|||||||
return arc.File.CreateStream (entry.Offset, entry.Size);
|
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>
|
/// <summary>
|
||||||
/// Create file corresponding to <paramref name="entry"/> in current directory and open it
|
/// Create file corresponding to <paramref name="entry"/> in current directory and open it
|
||||||
/// for writing. Overwrites existing file, if any.
|
/// for writing. Overwrites existing file, if any.
|
||||||
|
|||||||
Reference in New Issue
Block a user