From 4ff332d8221e94b9b39527a8b9c7deffd981a88d Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Fri, 20 Jul 2018 04:06:35 -0700 Subject: [PATCH] Remove method moved to shared Commit migrated from https://github.com/dotnet/corefx/commit/09285497b4fff817b6e3ce3328e99da3b211f176 --- .../Text/Utf8Formatter/FormattingHelpers.cs | 31 ---------------------- 1 file changed, 31 deletions(-) diff --git a/src/libraries/System.Memory/src/System/Buffers/Text/Utf8Formatter/FormattingHelpers.cs b/src/libraries/System.Memory/src/System/Buffers/Text/Utf8Formatter/FormattingHelpers.cs index 6d84e39..d5aaf13 100644 --- a/src/libraries/System.Memory/src/System/Buffers/Text/Utf8Formatter/FormattingHelpers.cs +++ b/src/libraries/System.Memory/src/System/Buffers/Text/Utf8Formatter/FormattingHelpers.cs @@ -242,36 +242,5 @@ namespace System.Buffers.Text } #endregion Math Helper methods - - #region Character counting helper methods - - // Counts the number of trailing '0' digits in a decimal numnber. - // e.g., value = 0 => retVal = 0, valueWithoutTrailingZeros = 0 - // value = 1234 => retVal = 0, valueWithoutTrailingZeros = 1234 - // value = 320900 => retVal = 2, valueWithoutTrailingZeros = 3209 - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static int CountDecimalTrailingZeros(uint value, out uint valueWithoutTrailingZeros) - { - int zeroCount = 0; - - if (value != 0) - { - while (true) - { - uint temp = DivMod(value, 10, out uint modulus); - if (modulus != 0) - { - break; - } - value = temp; - zeroCount++; - } - } - - valueWithoutTrailingZeros = value; - return zeroCount; - } - - #endregion Character counting helper methods } } -- 2.7.4