aboutsummaryrefslogtreecommitdiff
path: root/dotnet/Mammoth/SimpleResult.cs
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-06-04 16:03:56 +0100
committerMichael Williamson <mike@zwobble.org>2016-06-04 16:03:56 +0100
commit45e530dceda42282fae56b4c4f5fa7865f57899d (patch)
tree685868f4bf78c64e851cbcdafd674e887bc782a5 /dotnet/Mammoth/SimpleResult.cs
parentb5a83b1cb96d410e325ff8b733d550295376d8c7 (diff)
Remove dotnet (use submodule from dotnet repo instead)
Diffstat (limited to 'dotnet/Mammoth/SimpleResult.cs')
-rw-r--r--dotnet/Mammoth/SimpleResult.cs22
1 files changed, 0 insertions, 22 deletions
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<T> ToResult<T>(this InternalResult<T> result) {
- var warnings = new HashSet<string>(FromJava.IterableToEnumerable(result.getWarnings()));
- return new SimpleResult<T>(result.getValue(), warnings);
- }
- }
-
- internal class SimpleResult<T> : IResult<T> {
- public T Value { get; }
- public ISet<string> Warnings { get; }
-
- internal SimpleResult(T value, ISet<string> warnings) {
- Value = value;
- Warnings = warnings;
- }
- }
-}