Skip to content

Commit 888061f

Browse files
committed
Revert unintentional change to fix compile error
1 parent 9598a49 commit 888061f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

UnitsNet/QuantityFormatter.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using System.Globalization;
66
using System.Linq;
7-
using System.Text.RegularExpressions;
87
using UnitsNet.Units;
98

109
namespace UnitsNet
@@ -169,13 +168,6 @@ private static string FormatUntrimmed<TUnitType>(IQuantity<TUnitType> quantity,
169168
throw new FormatException($"The {format} format string is invalid because the abbreviation index does not exist.");
170169

171170
return abbreviations[precisionSpecifier];
172-
case 'f':
173-
UnitInfo unitInfo = UnitAbbreviationsCache.GetUnitInfo(quantity.Unit);
174-
var singleOrPluralName = quantity.Value == 1 ? unitInfo.Name : unitInfo.PluralName;
175-
string.Join(" ", Regex.Split(singleOrPluralName, @"(?<!^)(?=[A-Z])")).ToLower()
176-
var unitLongName = unitInfo.PluralName;
177-
return string.Format(formatProvider, $"{{0:{format}}} {{1}}", quantity.Value, unitLongName);
178-
179171
case 'V':
180172
case 'v':
181173
return quantity.Value.ToString(formatProvider);

0 commit comments

Comments
 (0)