Skip to content

Commit 4150faf

Browse files
committed
Remove not needed function
1 parent 4105c2b commit 4150faf

File tree

3 files changed

+0
-46
lines changed

3 files changed

+0
-46
lines changed

WooCommerce/Classes/Extensions/String+Helpers.swift

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -64,21 +64,6 @@ extension String {
6464
return newText
6565
}
6666

67-
/// Returns the given string minus the last character if that is a whitespace,
68-
/// or a copy of the string otherwise.
69-
///
70-
/// - Parameters:
71-
/// - string: the string to process
72-
/// - Returns: a string with the last characted removed, if that is a whitespace.
73-
///
74-
static func removeLastCharacterIfWhitespace(from string: String) -> String {
75-
guard string.last == " " else {
76-
return string
77-
}
78-
79-
return String(string.dropLast())
80-
}
81-
8267
/// A Boolean value indicating whether a string has characters.
8368
var isNotEmpty: Bool {
8469
return !isEmpty

WooCommerce/WooCommerce.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,6 @@
12081208
B9C4AB2728002AF3007008B8 /* PaymentReceiptEmailParameterDeterminer.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C4AB2628002AF3007008B8 /* PaymentReceiptEmailParameterDeterminer.swift */; };
12091209
B9C4AB29280031AB007008B8 /* PaymentReceiptEmailParameterDeterminerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C4AB28280031AB007008B8 /* PaymentReceiptEmailParameterDeterminerTests.swift */; };
12101210
B9C4AB2B28003481007008B8 /* MockPaymentsPluginsDataProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9C4AB2A28003481007008B8 /* MockPaymentsPluginsDataProvider.swift */; };
1211-
B9DA153A280DAC1500FC67DD /* String+HelpersTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9DA1539280DAC1500FC67DD /* String+HelpersTests.swift */; };
12121211
BAA34C202787494300846F3C /* ReviewsViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BAA34C1F2787494300846F3C /* ReviewsViewControllerTests.swift */; };
12131212
BAE4F8432734325C00871344 /* SettingsViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = BAE4F8422734325C00871344 /* SettingsViewModel.swift */; };
12141213
BAFEF51E273C2151005F94CC /* SettingsViewModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BAFEF51D273C2151005F94CC /* SettingsViewModelTests.swift */; };
@@ -2915,7 +2914,6 @@
29152914
B9C4AB2628002AF3007008B8 /* PaymentReceiptEmailParameterDeterminer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaymentReceiptEmailParameterDeterminer.swift; sourceTree = "<group>"; };
29162915
B9C4AB28280031AB007008B8 /* PaymentReceiptEmailParameterDeterminerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PaymentReceiptEmailParameterDeterminerTests.swift; sourceTree = "<group>"; };
29172916
B9C4AB2A28003481007008B8 /* MockPaymentsPluginsDataProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockPaymentsPluginsDataProvider.swift; sourceTree = "<group>"; };
2918-
B9DA1539280DAC1500FC67DD /* String+HelpersTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "String+HelpersTests.swift"; sourceTree = "<group>"; };
29192917
BAA34C1F2787494300846F3C /* ReviewsViewControllerTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ReviewsViewControllerTests.swift; sourceTree = "<group>"; };
29202918
BABE5E07DD787ECA6D2A76DE /* Pods_WooCommerce.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WooCommerce.framework; sourceTree = BUILT_PRODUCTS_DIR; };
29212919
BAE4F8422734325C00871344 /* SettingsViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsViewModel.swift; sourceTree = "<group>"; };
@@ -6310,7 +6308,6 @@
63106308
DE7842EE26F079A60030C792 /* NumberFormatter+LocalizedTests.swift */,
63116309
02DE5CAA279F8754007CBEF3 /* Double+RoundingTests.swift */,
63126310
02645D8927BA2EDB0065DC68 /* NSAttributedString+AttributesTests.swift */,
6313-
B9DA1539280DAC1500FC67DD /* String+HelpersTests.swift */,
63146311
);
63156312
path = Extensions;
63166313
sourceTree = "<group>";
@@ -9565,7 +9562,6 @@
95659562
4590B652261C8D1E00A6FCE0 /* WeightFormatterTests.swift in Sources */,
95669563
D8C11A6022E2479800D4A88D /* OrderPaymentDetailsViewModelTests.swift in Sources */,
95679564
023EC2E224DA8BAB0021DA91 /* MockProductSKUValidationStoresManager.swift in Sources */,
9568-
B9DA153A280DAC1500FC67DD /* String+HelpersTests.swift in Sources */,
95699565
26FE09E124DB8FA000B9BDF5 /* SurveyCoordinatorControllerTests.swift in Sources */,
95709566
0277AEAB256CAA5300F45C4A /* MockShippingLabelAddress.swift in Sources */,
95719567
D83F593D225B4B5000626E75 /* ManualTrackingViewControllerTests.swift in Sources */,

WooCommerce/WooCommerceTests/Extensions/String+HelpersTests.swift

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)