diff --git a/OpenRA.FileFormats/Primitives/Cached.cs b/OpenRA.FileFormats/Primitives/Cached.cs index 8823626eda..94d55648d9 100644 --- a/OpenRA.FileFormats/Primitives/Cached.cs +++ b/OpenRA.FileFormats/Primitives/Cached.cs @@ -39,12 +39,7 @@ namespace OpenRA.FileFormats } } - public void Force() - { - #pragma warning disable 0168 - var ignored = Value; - #pragma warning restore 0168 - } + public T Force() { return Value; } public void Invalidate() { diff --git a/OpenRA.FileFormats/Primitives/Lazy.cs b/OpenRA.FileFormats/Primitives/Lazy.cs index ed379d0ac8..ccdb8fbce3 100644 --- a/OpenRA.FileFormats/Primitives/Lazy.cs +++ b/OpenRA.FileFormats/Primitives/Lazy.cs @@ -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