Skip to content

Commit

Permalink
chore: Remove unused fields (#620)
Browse files Browse the repository at this point in the history
Removing unused dependencies

## Verification

- [x] **Your** code builds clean without any errors or warnings
- [x] Manual testing done (required)
- [x] Relevant automated test added (if you find this hard, leave it and
we'll help out)

## Documentation

- [x] Documentation is updated (either in `docs`-directory, Altinnpedia
or a separate linked PR in
[altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
applicable)
  • Loading branch information
oskogstad authored Apr 10, 2024
1 parent 092d44c commit f13c8b9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@ public UserOrganizationRegistry(IUser user, IOrganizationRegistry organizationRe

internal sealed class LocalDevelopmentUserOrganizationRegistryDecorator : IUserOrganizationRegistry
{
private readonly IUserOrganizationRegistry _userOrganizationRegistry;

public LocalDevelopmentUserOrganizationRegistryDecorator(IUserOrganizationRegistry userOrganizationRegistry)
{
_userOrganizationRegistry = userOrganizationRegistry ?? throw new ArgumentNullException(nameof(userOrganizationRegistry));
}
public LocalDevelopmentUserOrganizationRegistryDecorator(IUserOrganizationRegistry _) { }

public Task<string?> GetCurrentUserOrgShortName(CancellationToken cancellationToken) => Task.FromResult("digdir")!;
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,17 @@ internal sealed class GetDialogSeenLogQueryHandler : IRequestHandler<GetDialogSe
{
private readonly IMapper _mapper;
private readonly IDialogDbContext _dbContext;
private readonly IAltinnAuthorization _altinnAuthorization;
private readonly IStringHasher _stringHasher;
private readonly IUserResourceRegistry _userResourceRegistry;

public GetDialogSeenLogQueryHandler(
IMapper mapper,
IDialogDbContext dbContext,
IAltinnAuthorization altinnAuthorization,
IStringHasher stringHasher,
IUserResourceRegistry userResourceRegistry)
{
_mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
_dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
_altinnAuthorization = altinnAuthorization ?? throw new ArgumentNullException(nameof(altinnAuthorization));
_stringHasher = stringHasher ?? throw new ArgumentNullException(nameof(stringHasher));
_userResourceRegistry = userResourceRegistry ?? throw new ArgumentNullException(nameof(userResourceRegistry));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,17 @@ internal sealed class SearchDialogSeenLogQueryHandler : IRequestHandler<SearchDi
{
private readonly IDialogDbContext _db;
private readonly IMapper _mapper;
private readonly IAltinnAuthorization _altinnAuthorization;
private readonly IStringHasher _stringHasher;
private readonly IUserResourceRegistry _userResourceRegistry;

public SearchDialogSeenLogQueryHandler(
IDialogDbContext db,
IMapper mapper,
IAltinnAuthorization altinnAuthorization,
IStringHasher stringHasher,
IUserResourceRegistry userResourceRegistry)
{
_db = db ?? throw new ArgumentNullException(nameof(db));
_mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
_altinnAuthorization = altinnAuthorization ?? throw new ArgumentNullException(nameof(altinnAuthorization));
_stringHasher = stringHasher ?? throw new ArgumentNullException(nameof(stringHasher));
_userResourceRegistry = userResourceRegistry;
}
Expand Down

0 comments on commit f13c8b9

Please sign in to comment.