From 45e530dceda42282fae56b4c4f5fa7865f57899d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 4 Jun 2016 16:03:56 +0100 Subject: Remove dotnet (use submodule from dotnet repo instead) --- dotnet/Mammoth/SimpleResult.cs | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 dotnet/Mammoth/SimpleResult.cs (limited to 'dotnet/Mammoth/SimpleResult.cs') diff --git a/dotnet/Mammoth/SimpleResult.cs b/dotnet/Mammoth/SimpleResult.cs deleted file mode 100644 index f20cd42..0000000 --- a/dotnet/Mammoth/SimpleResult.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.Collections.Generic; -using Mammoth.Couscous; -using Mammoth.Couscous.org.zwobble.mammoth.@internal.results; - -namespace Mammoth { - internal static class SimpleResult { - internal static IResult ToResult(this InternalResult result) { - var warnings = new HashSet(FromJava.IterableToEnumerable(result.getWarnings())); - return new SimpleResult(result.getValue(), warnings); - } - } - - internal class SimpleResult : IResult { - public T Value { get; } - public ISet Warnings { get; } - - internal SimpleResult(T value, ISet warnings) { - Value = value; - Warnings = warnings; - } - } -} -- cgit v1.2.3