aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers/ThrowHelper.cs
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-06-25 16:42:09 +0100
committerJon Skeet <jonskeet@google.com>2015-06-26 20:13:06 +0100
commitaa5104143cca3bf3e9f44a79f96e394960f45662 (patch)
tree3d7eaffeaac656277657a1410542ab3a2812e68c /csharp/src/ProtocolBuffers/ThrowHelper.cs
parente75a10d8ff85901021a7c133534b6b87c3c7f072 (diff)
downloadprotobuf-aa5104143cca3bf3e9f44a79f96e394960f45662.tar.gz
protobuf-aa5104143cca3bf3e9f44a79f96e394960f45662.tar.bz2
protobuf-aa5104143cca3bf3e9f44a79f96e394960f45662.zip
Remove a lot of code which wasn't needed any more.
Diffstat (limited to 'csharp/src/ProtocolBuffers/ThrowHelper.cs')
-rw-r--r--csharp/src/ProtocolBuffers/ThrowHelper.cs26
1 files changed, 0 insertions, 26 deletions
diff --git a/csharp/src/ProtocolBuffers/ThrowHelper.cs b/csharp/src/ProtocolBuffers/ThrowHelper.cs
index c12a48a3..00ef23e5 100644
--- a/csharp/src/ProtocolBuffers/ThrowHelper.cs
+++ b/csharp/src/ProtocolBuffers/ThrowHelper.cs
@@ -35,7 +35,6 @@
#endregion
using System;
-using System.Collections.Generic;
namespace Google.Protobuf
{
@@ -54,30 +53,5 @@ namespace Google.Protobuf
throw new ArgumentNullException(name);
}
}
-
- /// <summary>
- /// Throws an ArgumentNullException if the given value is null.
- /// </summary>
- internal static void ThrowIfNull(object value)
- {
- if (value == null)
- {
- throw new ArgumentNullException();
- }
- }
-
- /// <summary>
- /// Throws an ArgumentNullException if the given value or any element within it is null.
- /// </summary>
- internal static void ThrowIfAnyNull<T>(IEnumerable<T> sequence)
- {
- foreach (T t in sequence)
- {
- if (t == null)
- {
- throw new ArgumentNullException();
- }
- }
- }
}
} \ No newline at end of file