Skip to content

Commit c986690

Browse files
committed
Rename RemoveItems method to RemoveLibraryItems for clarity and consistency
1 parent f84ad2b commit c986690

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/NexusMods.Abstractions.Library/ILibraryService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ IJobTask<IInstallLoadoutItemJob, InstallLoadoutItemJobResult> InstallItem(
7272
/// </summary>
7373
/// <param name="libraryItems">The items to remove from the library.</param>
7474
/// <param name="gcRunMode">Defines how the garbage collector should be run</param>
75-
Task RemoveItems(IEnumerable<LibraryItem.ReadOnly> libraryItems, GarbageCollectorRunMode gcRunMode = GarbageCollectorRunMode.RunAsynchronously);
75+
Task RemoveLibraryItems(IEnumerable<LibraryItem.ReadOnly> libraryItems, GarbageCollectorRunMode gcRunMode = GarbageCollectorRunMode.RunAsynchronously);
7676

7777
/// <summary>
7878
/// Unlinks a single item added by <see cref="InstallItem"/> function call from a loadout.

src/NexusMods.App.UI/Pages/Library/LibraryItemRemover.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ public static async Task RemoveAsync(
2626
alphaWarningViewModel.Controller = overlayController;
2727
var result = await overlayController.EnqueueAndWait(alphaWarningViewModel);
2828
if (result)
29-
await libraryService.RemoveItems(toRemove);
29+
await libraryService.RemoveLibraryItems(toRemove);
3030
}
3131
}

src/NexusMods.App.UI/Pages/MyGames/MyGamesViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private async Task RemoveGame(GameInstallation installation, bool shouldDeleteDo
236236
await installation.GetGame().Synchronizer.UnManage(installation);
237237

238238
if (!shouldDeleteDownloads) return;
239-
await _libraryService.RemoveItems(filesToDelete.Select(file => file.AsLibraryItem()));
239+
await _libraryService.RemoveLibraryItems(filesToDelete.Select(file => file.AsLibraryItem()));
240240

241241
foreach (var collection in collections)
242242
{

src/NexusMods.Library/LibraryService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public IJobTask<IInstallLoadoutItemJob, InstallLoadoutItemJobResult> InstallItem
7777

7878
return InstallLoadoutItemJob.Create(_serviceProvider, libraryItem, parent.Value, itemInstaller, fallbackInstaller, transaction);
7979
}
80-
public async Task RemoveItems(IEnumerable<LibraryItem.ReadOnly> libraryItems, GarbageCollectorRunMode gcRunMode = GarbageCollectorRunMode.RunAsynchronously)
80+
public async Task RemoveLibraryItems(IEnumerable<LibraryItem.ReadOnly> libraryItems, GarbageCollectorRunMode gcRunMode = GarbageCollectorRunMode.RunAsynchronously)
8181
{
8282
using var tx = _connection.BeginTransaction();
8383
var items = libraryItems.ToArray();

0 commit comments

Comments
 (0)