Skip to content

Commit

Permalink
Remove unused values
Browse files Browse the repository at this point in the history
  • Loading branch information
dus7 committed Apr 5, 2024
1 parent 8700210 commit 0e1791a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions DuckDuckGo/FavoritesOverlay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class FavoritesOverlay: UIViewController {
var collectionView: UICollectionView!
private var renderer: FavoritesHomeViewSectionRenderer!
private let appSettings: AppSettings

private var theme: Theme!

weak var delegate: FavoritesOverlayDelegate?

Expand Down Expand Up @@ -176,7 +174,6 @@ extension FavoritesOverlay {

private func decorate() {
let theme = ThemeManager.shared.currentTheme
self.theme = theme
view.backgroundColor = AppWidthObserver.shared.isLargeWidth ? .clear : theme.backgroundColor
}

Expand Down
4 changes: 0 additions & 4 deletions DuckDuckGo/FavoritesViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class FavoritesViewController: UIViewController {
var collectionView: UICollectionView!
private var renderer: FavoritesHomeViewSectionRenderer!

private var theme: Theme?

weak var delegate: FavoritesViewControllerDelegate?

private let bookmarksDatabase: CoreDataDatabase
Expand Down Expand Up @@ -90,7 +88,6 @@ class FavoritesViewController: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()
theme = ThemeManager.shared.currentTheme

collectionView = UICollectionView(frame: view.bounds, collectionViewLayout: layout)

Expand Down Expand Up @@ -289,7 +286,6 @@ extension FavoritesViewController {

private func decorate() {
let theme = ThemeManager.shared.currentTheme
self.theme = theme
view.backgroundColor = theme.backgroundColor
collectionView.backgroundColor = .clear
emptyStateContainer.backgroundColor = .clear
Expand Down

0 comments on commit 0e1791a

Please sign in to comment.