Remove duplicated Format2 implementation.

This commit is contained in:
Paul Chote
2013-12-02 19:56:30 +13:00
parent 4d12ea0941
commit c2413b63f7
3 changed files with 9 additions and 25 deletions

View File

@@ -89,21 +89,8 @@ namespace OpenRA.FileFormats
for (var j = 0; j < f.Size.Height; j++)
{
var k = j * f.Size.Width;
var length = stream.ReadUInt16() - 2;
while (length > 0)
{
var b = stream.ReadUInt8();
length--;
if (b == 0)
{
k += stream.ReadUInt8();
length--;
}
else
f.Data[k++] = b;
}
Format2.DecodeInto(stream.ReadBytes(length), f.Data, j * f.Size.Width);
}
}
}