Skip to content

Commit

Permalink
chore: remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
tnotheis committed Nov 14, 2024
1 parent 99649f4 commit ba1d0c9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public interface IIdentitiesRepository
Task<DbPaginationResult<Device>> FindAllDevicesOfIdentity(IdentityAddress identity, IEnumerable<DeviceId> ids, PaginationFilter paginationFilter, CancellationToken cancellationToken);
Task<Device?> GetDeviceById(DeviceId deviceId, CancellationToken cancellationToken, bool track = false);
Task Update(Device device, CancellationToken cancellationToken);
Task<IEnumerable<Device>> FindDevices(Expression<Func<Device, bool>> filter, CancellationToken cancellationToken, bool track = false);
Task<List<T>> FindDevices<T>(Expression<Func<Device, bool>> filter, Expression<Func<Device, T>> selector, CancellationToken cancellationToken, bool track = false);

#endregion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ public IdentitiesRepository(DevicesDbContext dbContext, UserManager<ApplicationU
.FirstWithAddressOrDefault(address, cancellationToken);
}

public async Task<IEnumerable<Device>> FindDevices(Expression<Func<Device, bool>> filter, CancellationToken cancellationToken, bool track = false)
{
return await (track ? _devices : _readonlyDevices)
.IncludeAll(_dbContext)
.Where(filter)
.ToListAsync(cancellationToken);
}

public async Task<List<T>> FindDevices<T>(Expression<Func<Device, bool>> filter, Expression<Func<Device, T>> selector, CancellationToken cancellationToken, bool track = false)
{
return await (track ? _devices : _readonlyDevices)
Expand Down

0 comments on commit ba1d0c9

Please sign in to comment.