mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
Redo Reformat and cleanup.
Rider EAP was having a bug interpreting .editorconfig that didn't generate the code style as we wanted. This is now done with Rider-stable.
This commit is contained in:
@@ -75,8 +75,7 @@ public class ExtentsShort
|
||||
for(var i = 0; i < _backend.Count; i++)
|
||||
{
|
||||
// Already contained in an extent
|
||||
if(item >= _backend[i].Item1 &&
|
||||
item <= _backend[i].Item2)
|
||||
if(item >= _backend[i].Item1 && item <= _backend[i].Item2)
|
||||
return;
|
||||
|
||||
// Expands existing extent start
|
||||
@@ -84,8 +83,7 @@ public class ExtentsShort
|
||||
{
|
||||
removeOne = _backend[i];
|
||||
|
||||
if(i > 0 &&
|
||||
item == _backend[i - 1].Item2 + 1)
|
||||
if(i > 0 && item == _backend[i - 1].Item2 + 1)
|
||||
{
|
||||
removeTwo = _backend[i - 1];
|
||||
itemToAdd = new Tuple<short, short>(_backend[i - 1].Item1, _backend[i].Item2);
|
||||
@@ -102,8 +100,7 @@ public class ExtentsShort
|
||||
|
||||
removeOne = _backend[i];
|
||||
|
||||
if(i < _backend.Count - 1 &&
|
||||
item == _backend[i + 1].Item1 - 1)
|
||||
if(i < _backend.Count - 1 && item == _backend[i + 1].Item1 - 1)
|
||||
{
|
||||
removeTwo = _backend[i + 1];
|
||||
itemToAdd = new Tuple<short, short>(_backend[i].Item1, _backend[i + 1].Item2);
|
||||
@@ -168,8 +165,7 @@ public class ExtentsShort
|
||||
foreach(Tuple<short, short> extent in _backend)
|
||||
{
|
||||
// Extent is contained and not a border
|
||||
if(item > extent.Item1 &&
|
||||
item < extent.Item2)
|
||||
if(item > extent.Item1 && item < extent.Item2)
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<short, short>(extent.Item1, (short)(item - 1));
|
||||
@@ -179,8 +175,7 @@ public class ExtentsShort
|
||||
}
|
||||
|
||||
// Extent is left border, but not only element
|
||||
if(item == extent.Item1 &&
|
||||
item != extent.Item2)
|
||||
if(item == extent.Item1 && item != extent.Item2)
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<short, short>((short)(item + 1), extent.Item2);
|
||||
@@ -189,8 +184,7 @@ public class ExtentsShort
|
||||
}
|
||||
|
||||
// Extent is right border, but not only element
|
||||
if(item != extent.Item1 &&
|
||||
item == extent.Item2)
|
||||
if(item != extent.Item1 && item == extent.Item2)
|
||||
{
|
||||
toRemove = extent;
|
||||
toAddOne = new Tuple<short, short>(extent.Item1, (short)(item - 1));
|
||||
@@ -199,8 +193,7 @@ public class ExtentsShort
|
||||
}
|
||||
|
||||
// Extent is only element
|
||||
if(item != extent.Item1 ||
|
||||
item != extent.Item2)
|
||||
if(item != extent.Item1 || item != extent.Item2)
|
||||
continue;
|
||||
|
||||
toRemove = extent;
|
||||
|
||||
Reference in New Issue
Block a user