From 5f75db4e1f229db01b94dedc7dc140371e5b1f49 Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Thu, 12 Jun 2025 15:02:46 +0530 Subject: [PATCH] Clean old method --- mobile/lib/utils/cache_util.dart | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/mobile/lib/utils/cache_util.dart b/mobile/lib/utils/cache_util.dart index 30cf761604..e3b6abdd98 100644 --- a/mobile/lib/utils/cache_util.dart +++ b/mobile/lib/utils/cache_util.dart @@ -43,24 +43,6 @@ Future _writeToJsonFile

(Map args) async { } } -Future writeToJsonFileUTF16

( - String filePath, - P data, - String Function(P) toJsonString, -) async { - try { - final file = File(filePath); - if (!file.existsSync()) { - file.createSync(recursive: true); - } - final jsonString = toJsonString(data); - final encodedData = jsonString.codeUnits; // UTF-16 encoding - await file.writeAsBytes(encodedData); - } catch (e, s) { - _logger.severe("Error writing to JSON file with UTF-16", e, s); - } -} - /// Reads a JSON file from the specified path using the provided method, inside computer. /// The method should decode the JSON string into an object. /// The JSON string is expected to be UTF-8 encoded.