From ba1d0c9fd7559f6c76ace012db8b4738c7b5e179 Mon Sep 17 00:00:00 2001 From: Timo Notheisen Date: Thu, 14 Nov 2024 10:07:22 +0100 Subject: [PATCH] chore: remove unused method --- .../Persistence/Repository/IIdentitiesRepository.cs | 1 - .../Persistence/Repository/IdentitiesRepository.cs | 8 -------- 2 files changed, 9 deletions(-) diff --git a/Modules/Devices/src/Devices.Application/Infrastructure/Persistence/Repository/IIdentitiesRepository.cs b/Modules/Devices/src/Devices.Application/Infrastructure/Persistence/Repository/IIdentitiesRepository.cs index 04e8e850cd..4b7ad48f0b 100644 --- a/Modules/Devices/src/Devices.Application/Infrastructure/Persistence/Repository/IIdentitiesRepository.cs +++ b/Modules/Devices/src/Devices.Application/Infrastructure/Persistence/Repository/IIdentitiesRepository.cs @@ -28,7 +28,6 @@ public interface IIdentitiesRepository Task> FindAllDevicesOfIdentity(IdentityAddress identity, IEnumerable ids, PaginationFilter paginationFilter, CancellationToken cancellationToken); Task GetDeviceById(DeviceId deviceId, CancellationToken cancellationToken, bool track = false); Task Update(Device device, CancellationToken cancellationToken); - Task> FindDevices(Expression> filter, CancellationToken cancellationToken, bool track = false); Task> FindDevices(Expression> filter, Expression> selector, CancellationToken cancellationToken, bool track = false); #endregion diff --git a/Modules/Devices/src/Devices.Infrastructure/Persistence/Repository/IdentitiesRepository.cs b/Modules/Devices/src/Devices.Infrastructure/Persistence/Repository/IdentitiesRepository.cs index 612eb95961..8124d69181 100644 --- a/Modules/Devices/src/Devices.Infrastructure/Persistence/Repository/IdentitiesRepository.cs +++ b/Modules/Devices/src/Devices.Infrastructure/Persistence/Repository/IdentitiesRepository.cs @@ -44,14 +44,6 @@ public IdentitiesRepository(DevicesDbContext dbContext, UserManager> FindDevices(Expression> filter, CancellationToken cancellationToken, bool track = false) - { - return await (track ? _devices : _readonlyDevices) - .IncludeAll(_dbContext) - .Where(filter) - .ToListAsync(cancellationToken); - } - public async Task> FindDevices(Expression> filter, Expression> selector, CancellationToken cancellationToken, bool track = false) { return await (track ? _devices : _readonlyDevices)