diff options
author | Jon Skeet <jonskeet@google.com> | 2015-06-25 16:42:09 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-06-26 20:13:06 +0100 |
commit | aa5104143cca3bf3e9f44a79f96e394960f45662 (patch) | |
tree | 3d7eaffeaac656277657a1410542ab3a2812e68c /csharp/src/ProtocolBuffers/ByteArray.cs | |
parent | e75a10d8ff85901021a7c133534b6b87c3c7f072 (diff) | |
download | protobuf-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/ByteArray.cs')
-rw-r--r-- | csharp/src/ProtocolBuffers/ByteArray.cs | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/csharp/src/ProtocolBuffers/ByteArray.cs b/csharp/src/ProtocolBuffers/ByteArray.cs index 211a0e11..14e2744a 100644 --- a/csharp/src/ProtocolBuffers/ByteArray.cs +++ b/csharp/src/ProtocolBuffers/ByteArray.cs @@ -59,19 +59,11 @@ namespace Google.Protobuf }
else
{
- ByteCopy(src, srcOffset, dst, dstOffset, count);
- }
- }
-
- /// <summary>
- /// Copy the bytes provided with a for loop, faster when there are only a few bytes to copy
- /// </summary>
- internal static void ByteCopy(byte[] src, int srcOffset, byte[] dst, int dstOffset, int count)
- {
- int stop = srcOffset + count;
- for (int i = srcOffset; i < stop; i++)
- {
- dst[dstOffset++] = src[i];
+ int stop = srcOffset + count;
+ for (int i = srcOffset; i < stop; i++)
+ {
+ dst[dstOffset++] = src[i];
+ }
}
}
|