remove the need for warning suppression in Lazy/Cached
This commit is contained in:
@@ -39,12 +39,7 @@ namespace OpenRA.FileFormats
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Force()
|
public T Force() { return Value; }
|
||||||
{
|
|
||||||
#pragma warning disable 0168
|
|
||||||
var ignored = Value;
|
|
||||||
#pragma warning restore 0168
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Invalidate()
|
public void Invalidate()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,12 +38,7 @@ namespace OpenRA.FileFormats
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Force()
|
public T Force() { return Value; }
|
||||||
{
|
|
||||||
#pragma warning disable 0168
|
|
||||||
var ignored = Value;
|
|
||||||
#pragma warning restore 0168
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Lazy
|
public static class Lazy
|
||||||
|
|||||||
Reference in New Issue
Block a user