diff options
author | Vlad Brezae <brezaevlad@gmail.com> | 2018-10-11 13:23:48 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2018-11-05 23:09:55 +0300 |
commit | 0947b7b289226e9bde3d791c8409f831d64b5332 (patch) | |
tree | c6144b7e2b2c50703645d93f3579276d49a60fd6 | |
parent | 9772a0868ae69bab915946d7acff8c1563bde22e (diff) |
[corlib] Remove unused function
-rw-r--r-- | mcs/class/corlib/ReferenceSources/String.cs | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/mcs/class/corlib/ReferenceSources/String.cs b/mcs/class/corlib/ReferenceSources/String.cs index 628fa968ffe..8c7c4da6477 100644 --- a/mcs/class/corlib/ReferenceSources/String.cs +++ b/mcs/class/corlib/ReferenceSources/String.cs @@ -242,25 +242,6 @@ namespace System return countA - countB; } - internal static unsafe void CharCopy (char *dest, char *src, int count) { - // Same rules as for memcpy, but with the premise that - // chars can only be aligned to even addresses if their - // enclosing types are correctly aligned - if ((((int)(byte*)dest | (int)(byte*)src) & 3) != 0) { - if (((int)(byte*)dest & 2) != 0 && ((int)(byte*)src & 2) != 0 && count > 0) { - ((short*)dest) [0] = ((short*)src) [0]; - dest++; - src++; - count--; - } - if ((((int)(byte*)dest | (int)(byte*)src) & 2) != 0) { - Buffer.memcpy2 ((byte*)dest, (byte*)src, count * 2); - return; - } - } - Buffer.memcpy4 ((byte*)dest, (byte*)src, count * 2); - } - #region Runtime method-to-ir dependencies /* helpers used by the runtime as well as above or eslewhere in corlib */ @@ -453,4 +434,4 @@ namespace System return hash1 + (hash2 * 1566083941); } } -}
\ No newline at end of file +} |