From e9a331292afb529ac4b758a8f7d5f78453d0ca9c Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Sun, 17 Jul 2022 01:26:18 -0600 Subject: [PATCH] Remove Commit method --- .../AvaloniaUI/ViewModels/LibraryBookEntry.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Source/LibationWinForms/AvaloniaUI/ViewModels/LibraryBookEntry.cs b/Source/LibationWinForms/AvaloniaUI/ViewModels/LibraryBookEntry.cs index 445a356b..ac8140d1 100644 --- a/Source/LibationWinForms/AvaloniaUI/ViewModels/LibraryBookEntry.cs +++ b/Source/LibationWinForms/AvaloniaUI/ViewModels/LibraryBookEntry.cs @@ -78,7 +78,7 @@ namespace LibationWinForms.AvaloniaUI.ViewModels UserDefinedItem.ItemChanged += UserDefinedItem_ItemChanged; } - #region detect changes to the model, update the view, and save to database. + #region detect changes to the model, update the view. /// /// This event handler receives notifications from the model that it has changed. @@ -113,11 +113,6 @@ namespace LibationWinForms.AvaloniaUI.ViewModels } } - /// Save edits to the database - public void Commit(string newTags, LiberatedStatus bookStatus, LiberatedStatus? pdfStatus) - // MVVM pass-through - => Book.UpdateBook(newTags, bookStatus: bookStatus, pdfStatus: pdfStatus); - #endregion #region Data Sorting