commit d5ff384269189ba3422e3032f5f78a4096c5e9b1
parent b68da53923d78420be58d05e1abec5464527f64b
Author: Marc Stibane <marc@taler.net>
Date: Mon, 29 Jun 2026 13:04:06 +0200
Reimplements Foundation -> unneccessary
Diffstat:
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/TalerWallet1/Helper/TalerStrings.swift b/TalerWallet1/Helper/TalerStrings.swift
@@ -1,5 +1,5 @@
/*
- * This file is part of GNU Taler, ©2022-25 Taler Systems S.A.
+ * This file is part of GNU Taler, ©2022-26 Taler Systems S.A.
* See LICENSE.md
*/
/**
@@ -71,14 +71,6 @@ extension String {
return nil
}
- func replacingOccurrences(of str1: String, with str2: String) -> String {
- let fragments = self.components(separatedBy: str1)
- if fragments.count > 1 {
- return fragments.joined(separator: str2)
- }
- return self
- }
-
func deletingPrefix(_ prefix: String) -> String {
guard self.hasPrefix(prefix) else { return self }
return String(self.dropFirst(prefix.count))