(uGOS): removed IDisposable interface from image reader.

This commit is contained in:
morkt 2018-12-19 03:23:43 +04:00
parent 03045b1337
commit 1706a0dd86

View File

@ -71,11 +71,9 @@ namespace GameRes.Formats.uGOS
public override ImageData Read (IBinaryStream file, ImageMetaData info)
{
using (var reader = new Reader (file, (DetBmpMetaData)info))
{
reader.Unpack();
return ImageData.CreateFlipped (info, reader.Format, null, reader.Data, reader.Stride);
}
var reader = new Reader (file, (DetBmpMetaData)info);
reader.Unpack();
return ImageData.CreateFlipped (info, reader.Format, null, reader.Data, reader.Stride);
}
public override void Write (Stream file, ImageData image)
@ -83,7 +81,7 @@ namespace GameRes.Formats.uGOS
throw new System.NotImplementedException ("DetBmpFormat.Write not implemented");
}
internal sealed class Reader : IDisposable
internal sealed class Reader
{
IBinaryStream m_input;
byte[] m_output;
@ -451,12 +449,6 @@ namespace GameRes.Formats.uGOS
dword_4CB750[i] = OffsetsX[i] + m_width * OffsetsY[i];
}
}
#region IDisposable Members
public void Dispose ()
{
}
#endregion
}
}
}