mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Code cleanup.
This commit is contained in:
@@ -135,7 +135,7 @@ namespace Extents
|
||||
{
|
||||
byte realEnd;
|
||||
if(run) realEnd = (byte)(start + end - 1);
|
||||
else realEnd = end;
|
||||
else realEnd = end;
|
||||
|
||||
// TODO: Optimize this
|
||||
for(byte t = start; t <= realEnd; t++) Add(t);
|
||||
@@ -177,7 +177,7 @@ namespace Extents
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<byte, byte>(extent.Item1, (byte)(item - 1));
|
||||
toAddTwo = new Tuple<byte, byte>((byte)(item + 1), extent.Item2);
|
||||
toAddTwo = new Tuple<byte, byte>((byte)(item + 1), extent.Item2);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Extents
|
||||
{
|
||||
int realEnd;
|
||||
if(run) realEnd = start + end - 1;
|
||||
else realEnd = end;
|
||||
else realEnd = end;
|
||||
|
||||
// TODO: Optimize this
|
||||
for(int t = start; t <= realEnd; t++) Add(t);
|
||||
@@ -177,7 +177,7 @@ namespace Extents
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<int, int>(extent.Item1, item - 1);
|
||||
toAddTwo = new Tuple<int, int>(item + 1, extent.Item2);
|
||||
toAddTwo = new Tuple<int, int>(item + 1, extent.Item2);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Extents
|
||||
{
|
||||
long realEnd;
|
||||
if(run) realEnd = start + end - 1;
|
||||
else realEnd = end;
|
||||
else realEnd = end;
|
||||
|
||||
// TODO: Optimize this
|
||||
for(long t = start; t <= realEnd; t++) Add(t);
|
||||
@@ -177,7 +177,7 @@ namespace Extents
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<long, long>(extent.Item1, item - 1);
|
||||
toAddTwo = new Tuple<long, long>(item + 1, extent.Item2);
|
||||
toAddTwo = new Tuple<long, long>(item + 1, extent.Item2);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Extents
|
||||
{
|
||||
sbyte realEnd;
|
||||
if(run) realEnd = (sbyte)(start + end - 1);
|
||||
else realEnd = end;
|
||||
else realEnd = end;
|
||||
|
||||
// TODO: Optimize this
|
||||
for(sbyte t = start; t <= realEnd; t++) Add(t);
|
||||
@@ -177,7 +177,7 @@ namespace Extents
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<sbyte, sbyte>(extent.Item1, (sbyte)(item - 1));
|
||||
toAddTwo = new Tuple<sbyte, sbyte>((sbyte)(item + 1), extent.Item2);
|
||||
toAddTwo = new Tuple<sbyte, sbyte>((sbyte)(item + 1), extent.Item2);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Extents
|
||||
{
|
||||
short realEnd;
|
||||
if(run) realEnd = (short)(start + end - 1);
|
||||
else realEnd = end;
|
||||
else realEnd = end;
|
||||
|
||||
// TODO: Optimize this
|
||||
for(short t = start; t <= realEnd; t++) Add(t);
|
||||
@@ -177,7 +177,7 @@ namespace Extents
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<short, short>(extent.Item1, (short)(item - 1));
|
||||
toAddTwo = new Tuple<short, short>((short)(item + 1), extent.Item2);
|
||||
toAddTwo = new Tuple<short, short>((short)(item + 1), extent.Item2);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Extents
|
||||
{
|
||||
uint realEnd;
|
||||
if(run) realEnd = start + end - 1;
|
||||
else realEnd = end;
|
||||
else realEnd = end;
|
||||
|
||||
// TODO: Optimize this
|
||||
for(uint t = start; t <= realEnd; t++) Add(t);
|
||||
@@ -177,7 +177,7 @@ namespace Extents
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<uint, uint>(extent.Item1, item - 1);
|
||||
toAddTwo = new Tuple<uint, uint>(item + 1, extent.Item2);
|
||||
toAddTwo = new Tuple<uint, uint>(item + 1, extent.Item2);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Extents
|
||||
{
|
||||
ulong realEnd;
|
||||
if(run) realEnd = start + end - 1;
|
||||
else realEnd = end;
|
||||
else realEnd = end;
|
||||
|
||||
// TODO: Optimize this
|
||||
for(ulong t = start; t <= realEnd; t++) Add(t);
|
||||
@@ -177,7 +177,7 @@ namespace Extents
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<ulong, ulong>(extent.Item1, item - 1);
|
||||
toAddTwo = new Tuple<ulong, ulong>(item + 1, extent.Item2);
|
||||
toAddTwo = new Tuple<ulong, ulong>(item + 1, extent.Item2);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ namespace Extents
|
||||
{
|
||||
ushort realEnd;
|
||||
if(run) realEnd = (ushort)(start + end - 1);
|
||||
else realEnd = end;
|
||||
else realEnd = end;
|
||||
|
||||
// TODO: Optimize this
|
||||
for(ushort t = start; t <= realEnd; t++) Add(t);
|
||||
@@ -177,7 +177,7 @@ namespace Extents
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<ushort, ushort>(extent.Item1, (ushort)(item - 1));
|
||||
toAddTwo = new Tuple<ushort, ushort>((ushort)(item + 1), extent.Item2);
|
||||
toAddTwo = new Tuple<ushort, ushort>((ushort)(item + 1), extent.Item2);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user