mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
refactor: Removing unused code
This commit is contained in:
@@ -137,30 +137,6 @@ namespace ICD.Common.Utils
|
||||
0.0f, 1.0f, new TimeSpan(value.Ticks).TotalSeconds);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the digit count for the given number.
|
||||
/// </summary>
|
||||
/// <param name="number"></param>
|
||||
/// <returns></returns>
|
||||
public static int GetNumberOfDigits(int number)
|
||||
{
|
||||
int output = number.ToString().Length;
|
||||
if (number < 0)
|
||||
output--;
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the digit count for the given number.
|
||||
/// </summary>
|
||||
/// <param name="number"></param>
|
||||
/// <returns></returns>
|
||||
public static int GetNumberOfDigits(uint number)
|
||||
{
|
||||
return number.ToString().Length;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Takes a sequence of numbers:
|
||||
/// 1, 3, 5, 6, 7, 8, 9, 10, 12
|
||||
|
||||
Reference in New Issue
Block a user