Skip to content

Commit

Permalink
Remove unecessary BrowserClearViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH committed Oct 30, 2024
1 parent f02cf6f commit 212f19f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 47 deletions.
1 change: 0 additions & 1 deletion App/App_macOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ struct RootView: View {
private let openURL = NotificationCenter.default.publisher(for: .openURL)
private let appTerminates = NotificationCenter.default.publisher(for: NSApplication.willTerminateNotification)
private let tabCloses = NotificationCenter.default.publisher(for: NSWindow.willCloseNotification)
private let browserClearModel = BrowserClearViewModel()
/// Close other tabs then the ones received
private let keepOnlyTabs = NotificationCenter.default.publisher(for: .keepOnlyTabs)

Expand Down
45 changes: 0 additions & 45 deletions ViewModel/BrowserClearViewModel.swift

This file was deleted.

2 changes: 1 addition & 1 deletion ViewModel/BrowserViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import CoreKiwix

// swiftlint:disable file_length
// swiftlint:disable:next type_body_length
final class BrowserViewModel: NSObject, ObservableObject, BrowserViewModelClearable,
final class BrowserViewModel: NSObject, ObservableObject,
WKNavigationDelegate, WKScriptMessageHandler, WKUIDelegate,
NSFetchedResultsControllerDelegate {

Expand Down

0 comments on commit 212f19f

Please sign in to comment.