Remove unnecessary value assignment (IDE0059)

This commit is contained in:
Matthias Mailänder
2022-09-18 10:02:00 +02:00
committed by Gustas
parent 757c4d84c7
commit 6bd631618c
19 changed files with 38 additions and 60 deletions

View File

@@ -40,15 +40,15 @@ namespace OpenRA.Mods.Cnc.VideoLoaders
if (frames <= 1) // TODO: find a better way to differentiate .shp icons
return false;
var x = s.ReadUInt16();
var y = s.ReadUInt16();
/* var x = */ s.ReadUInt16();
/* var y = */ s.ReadUInt16();
var width = s.ReadUInt16();
var height = s.ReadUInt16();
if (width <= 0 || height <= 0)
return false;
var delta = s.ReadUInt16() + 37;
/*var delta = */ s.ReadUInt16(); /* + 37;*/
var flags = s.ReadUInt16();
@@ -58,7 +58,7 @@ namespace OpenRA.Mods.Cnc.VideoLoaders
if (flags == 1)
{
var palette = s.ReadBytes(768);
/* var palette = */ s.ReadBytes(768);
for (var i = 0; i < offsets.Length; i++)
offsets[i] += 768;
}