aboutsummaryrefslogtreecommitdiff
path: root/dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.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/Couscous/mammoth/internal/util/Casts.cs
parentb5a83b1cb96d410e325ff8b733d550295376d8c7 (diff)
Remove dotnet (use submodule from dotnet repo instead)
Diffstat (limited to 'dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.cs')
-rw-r--r--dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.cs13
1 files changed, 0 insertions, 13 deletions
diff --git a/dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.cs b/dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.cs
deleted file mode 100644
index c342e20..0000000
--- a/dotnet/Mammoth/Couscous/mammoth/internal/util/Casts.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-using Mammoth.Couscous.java.util;
-
-namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.util {
- internal static class Casts {
- internal static Optional<T> tryCast<T>(System.Type type, object value) {
- if (value is T) {
- return new Some<T>((T) value);
- } else {
- return new None<T>();
- }
- }
- }
-}