Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Unused property cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub committed Nov 18, 2022
1 parent ceb944f commit 1b79d5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Client/BraveSkus/BraveSkusManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,14 @@ import os.log

public class BraveSkusManager {
private let sku: SkusSkusService
private let considerCachedCredentials: Bool

public init?(isPrivateMode: Bool, considerCachedCredentials: Bool) {
public init?(isPrivateMode: Bool) {
guard let skusService = Skus.SkusServiceFactory.get(privateMode: isPrivateMode) else {
assertionFailure("Failed to create SkusService")
return nil
}

self.sku = skusService
self.considerCachedCredentials = considerCachedCredentials
}

public static func refreshSKUCredential(isPrivate: Bool) {
Expand All @@ -37,7 +35,7 @@ public class BraveSkusManager {
return
}

guard let manager = BraveSkusManager(isPrivateMode: isPrivate, considerCachedCredentials: true) else {
guard let manager = BraveSkusManager(isPrivateMode: isPrivate) else {
assertionFailure()
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BraveSkusScriptHandler: TabContentScript {
private let braveSkusManager: BraveSkusManager

required init?(tab: Tab) {
guard let manager = BraveSkusManager(isPrivateMode: tab.isPrivate, considerCachedCredentials: false) else {
guard let manager = BraveSkusManager(isPrivateMode: tab.isPrivate) else {
assertionFailure()
return nil
}
Expand Down

0 comments on commit 1b79d5c

Please sign in to comment.