From eb783f0fffa2a060187bd7a757c7139bcc8bbffe Mon Sep 17 00:00:00 2001 From: laurenspriem Date: Mon, 26 May 2025 16:44:06 +0530 Subject: [PATCH] Remove redundant method --- .../lib/services/memories_cache_service.dart | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/mobile/lib/services/memories_cache_service.dart b/mobile/lib/services/memories_cache_service.dart index 07327d5cbf..d4b7360489 100644 --- a/mobile/lib/services/memories_cache_service.dart +++ b/mobile/lib/services/memories_cache_service.dart @@ -527,39 +527,6 @@ class MemoriesCacheService { ); } - Future goToMemoryFromMemoryID( - BuildContext context, - String memoryID, - ) async { - final allMemories = await getMemories(); - if (allMemories.isEmpty) return; - int memoryIdx = 0; - bool found = false; - memoryLoop: - for (final memory in _cachedMemories!) { - if (memory.id == memoryID) { - found = true; - break memoryLoop; - } - memoryIdx++; - } - if (!found) { - _logger.warning( - "Could not find memory with memoryID: $memoryID", - ); - return; - } - await routeToPage( - context, - FullScreenMemoryDataUpdater( - initialIndex: 0, - memories: allMemories[memoryIdx].memories, - child: FullScreenMemory(allMemories[memoryIdx].title, 0), - ), - forceCustomPageRoute: true, - ); - } - Future goToOnThisDayMemory(BuildContext context) async { final allMemories = await getMemories(); if (allMemories.isEmpty) return;