Skip to content

Commit

Permalink
Remove redundant accessibility modifiers from interface members (#1050)
Browse files Browse the repository at this point in the history
* Remove unnecessary accessibility modifiers from interfaces

* Remove more accessibility modifiers
  • Loading branch information
MH321Productions authored Feb 12, 2025
1 parent 123d5dd commit bd0945f
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ namespace Backbone.ConsumerApi.Tests.Performance.SnapshotCreator.Application.Mes

public interface IMessageDistributor
{
public void Distribute(IList<PoolEntry> pools);
void Distribute(IList<PoolEntry> pools);
}
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public void PrintStringToFile(string value, string filename)

public interface IPrinter
{
public void OutputAll(IList<PoolEntry> pools, PrintTarget target = PrintTarget.All);
void OutputAll(IList<PoolEntry> pools, PrintTarget target = PrintTarget.All);
protected internal void PrintRelationships(IList<PoolEntry> pools, bool summaryOnly = false);
protected internal void PrintMessages(IList<PoolEntry> pools, bool summaryOnly = false);
void PrintStringToFile(string value, string filename);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ namespace Backbone.ConsumerApi.Tests.Performance.SnapshotCreator.Application.Rel

public interface IRelationshipDistributor
{
public void Distribute(IList<PoolEntry> pools);
void Distribute(IList<PoolEntry> pools);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

public interface IAuthenticator
{
public Task Authenticate(HttpRequestMessage request);
Task Authenticate(HttpRequestMessage request);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ namespace Backbone.BuildingBlocks.SDK.Endpoints.Common.Types;

public interface IQueryParameterStorage
{
public NameValueCollection ToQueryParameters();
NameValueCollection ToQueryParameters();
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ namespace Backbone.BuildingBlocks.SDK.Endpoints.Common.Types;

public interface IResponse
{
public bool IsSuccess { get; }
public bool IsError { get; }
public ApiError? Error { get; set; }
public HttpStatusCode Status { get; set; }
bool IsSuccess { get; }
bool IsError { get; }
ApiError? Error { get; set; }
HttpStatusCode Status { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Backbone.Modules.Devices.Application.Infrastructure.Persistence.Reposi
public interface IOAuthClientsRepository
{
Task<IEnumerable<OAuthClient>> FindAll(CancellationToken cancellationToken, bool track = false);
public Task<Dictionary<string, int>> CountIdentities(List<string> clients, CancellationToken cancellationToken);
Task<Dictionary<string, int>> CountIdentities(List<string> clients, CancellationToken cancellationToken);
Task<OAuthClient?> Find(string clientId, CancellationToken cancellationToken, bool track = false);
Task<bool> Exists(string clientId, CancellationToken cancellationToken);
Task Add(OAuthClient client, string clientSecret, CancellationToken cancellationToken);
Expand Down
2 changes: 1 addition & 1 deletion Modules/Quotas/src/Quotas.Domain/Aggregates/ICreatedAt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ namespace Backbone.Modules.Quotas.Domain.Aggregates;

public interface ICreatedAt
{
public DateTime CreatedAt { get; }
DateTime CreatedAt { get; }
}
2 changes: 1 addition & 1 deletion Modules/Quotas/src/Quotas.Domain/IMetricCalculator.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
namespace Backbone.Modules.Quotas.Domain;
public interface IMetricCalculator
{
public Task<uint> CalculateUsage(DateTime from, DateTime to, string identityAddress, CancellationToken cancellationToken);
Task<uint> CalculateUsage(DateTime from, DateTime to, string identityAddress, CancellationToken cancellationToken);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ namespace Backbone.Modules.Tags.Application.Infrastructure.Persistence.Repositor

public interface ITagsRepository
{
public IEnumerable<string> GetSupportedLanguages();
public Dictionary<string, Dictionary<string, TagInfo>> GetAttributes();
IEnumerable<string> GetSupportedLanguages();
Dictionary<string, Dictionary<string, TagInfo>> GetAttributes();
}

0 comments on commit bd0945f

Please sign in to comment.