From f84dbd1fda0f487e1ee8ce0148702a2d1ad7fc0e Mon Sep 17 00:00:00 2001 From: Santo Shakil Date: Sun, 21 Jun 2026 02:34:09 +0600 Subject: [PATCH] chore(mobile): drop unused stack getAll --- .../repositories/stack.repository.dart | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/mobile/lib/infrastructure/repositories/stack.repository.dart b/mobile/lib/infrastructure/repositories/stack.repository.dart index 12ce24f4c0..0cf73cdd04 100644 --- a/mobile/lib/infrastructure/repositories/stack.repository.dart +++ b/mobile/lib/infrastructure/repositories/stack.repository.dart @@ -1,5 +1,4 @@ import 'package:drift/drift.dart'; -import 'package:immich_mobile/domain/models/stack.model.dart'; import 'package:immich_mobile/infrastructure/entities/stack.entity.drift.dart'; import 'package:immich_mobile/infrastructure/repositories/db.repository.dart'; @@ -23,14 +22,6 @@ class DriftStackRepository extends DriftDatabaseRepository { final Drift _db; const DriftStackRepository(this._db) : super(_db); - Future> getAll(String userId) { - final query = _db.stackEntity.select()..where((e) => e.ownerId.equals(userId)); - - return query.map((stack) { - return stack.toDto(); - }).get(); - } - // Find stacks whose primary should flip back after a revert: a local that was // uploaded as an edit (prior in the stack) now hashes to a DIFFERENT member // that isn't the primary. Two discriminators keep this from fighting stacks @@ -163,9 +154,3 @@ class DriftStackRepository extends DriftDatabaseRepository { ); } } - -extension on StackEntityData { - Stack toDto() { - return Stack(id: id, createdAt: createdAt, updatedAt: updatedAt, ownerId: ownerId, primaryAssetId: primaryAssetId); - } -}