Skip to content

Commit

Permalink
Remove unused update function
Browse files Browse the repository at this point in the history
  • Loading branch information
andchiind committed Sep 3, 2024
1 parent edd27e5 commit e2898cc
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions backend/api/Services/SourceService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public interface ISourceService

public abstract Task<Source> CreateSourceIfDoesNotExist(List<MissionTask> tasks, bool readOnly = true);

public abstract Task<Source> Update(Source source);

public abstract Task<Source?> Delete(string id);

public void DetachTracking(Source source);
Expand Down Expand Up @@ -125,13 +123,6 @@ public async Task<Source> CreateSourceIfDoesNotExist(List<MissionTask> tasks, bo
return newSource;
}

public async Task<Source> Update(Source source)
{
var entry = context.Update(source);
await context.SaveChangesAsync();
return entry.Entity;
}

public async Task<Source?> Delete(string id)
{
var source = await GetSources()
Expand Down

0 comments on commit e2898cc

Please sign in to comment.