taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 44d4e303c47b9da7a24710cebb62829bfb861e40
parent 0fd9c10887e130e8b5495f852486ca74a5650542
Author: Marc Stibane <marc@taler.net>
Date:   Wed,  2 Sep 2026 12:00:54 +0200

cleanup

Diffstat:
MTalerWallet1/Model/WalletModel.swift | 22----------------------
1 file changed, 0 insertions(+), 22 deletions(-)

diff --git a/TalerWallet1/Model/WalletModel.swift b/TalerWallet1/Model/WalletModel.swift @@ -521,28 +521,6 @@ extension WalletModel { } throw WalletBackendError.initializationError } - - private func cachePath() throws -> String { - let fileManager = FileManager.default - if let cachesURL = fileManager.urls(for: .cachesDirectory, in: .userDomainMask).first { - let cacheURL = cachesURL.appendingPathComponent("cache.json") - let cachePath = cacheURL.path - logger.debug("cachePath: \(cachePath)") - - if !fileManager.fileExists(atPath: cachePath) { - let contents = Data() /// Initialize an empty `Data`. - fileManager.createFile(atPath: cachePath, contents: contents) - print("❗️ File \(cachePath) created") - } else { - print("❗️ File \(cachePath) already exists") - } - - return cachePath - } else { // should never happen - logger.error("cachePath: No cachesDirectory") - throw WalletBackendError.initializationError - } - } } // MARK: - /// A request to migrate the Wallet-core DB from indexed to native sqlite.