remove the need for warning suppression in Lazy/Cached

This commit is contained in:
Chris Forbes
2011-07-15 09:56:50 +12:00
committed by Paul Chote
parent f9b1c4fcc3
commit b1eea4a4d3
2 changed files with 2 additions and 12 deletions

View File

@@ -38,12 +38,7 @@ namespace OpenRA.FileFormats
}
}
public void Force()
{
#pragma warning disable 0168
var ignored = Value;
#pragma warning restore 0168
}
public T Force() { return Value; }
}
public static class Lazy