Skip to content

Commit 9028834

Browse files
graemebrindy
andauthored
Fix linting issues after CI SwiftLint update (duckduckgo#2055)
Co-authored-by: Chris Brind <[email protected]>
1 parent 76db01b commit 9028834

9 files changed

+2
-41
lines changed

DuckDuckGo/AutofillListItemTableViewCell.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ class AutofillListItemTableViewCell: UITableViewCell {
118118
contentStackView.bottomAnchor.constraint(equalTo: margins.bottomAnchor)
119119
])
120120
}
121-
122-
override func setSelected(_ selected: Bool, animated: Bool) {
123-
super.setSelected(selected, animated: animated)
124-
}
125121

126122
private func setupContentView(with item: AutofillLoginListItemViewModel) {
127123
titleLabel.text = item.title

DuckDuckGo/DaxDialogs.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ final class DaxDialogs {
7373
case .siteIsMajorTracker, .siteOwnedByMajorTracker:
7474
settings.browsingMajorTrackingSiteShown = flag
7575
settings.browsingWithoutTrackersShown = flag
76-
}
76+
}
7777
}
7878

7979
struct BrowsingSpec: Equatable {

DuckDuckGo/KeychainItemsDebugViewController.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ private enum SecClass: CaseIterable {
115115

116116
class KeychainItemsDebugViewController: UITableViewController {
117117

118-
override func viewDidLoad() {
119-
super.viewDidLoad()
120-
}
121-
122118
override func numberOfSections(in tableView: UITableView) -> Int {
123119
return SecClass.allCases.count
124120
}

DuckDuckGo/OnboardingDefaultBroswerViewController.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,4 @@ class OnboardingDefaultBroswerViewController: OnboardingContentViewController {
4141
super.onContinuePressed(navigationHandler: navigationHandler)
4242
}
4343

44-
override func onSkipPressed(navigationHandler: @escaping () -> Void) {
45-
super.onSkipPressed(navigationHandler: navigationHandler)
46-
}
4744
}

DuckDuckGo/SaveLoginViewController.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ class SaveLoginViewController: UIViewController {
6161
viewModel?.viewControllerDidAppear()
6262
}
6363

64-
override func viewDidLayoutSubviews() {
65-
super.viewDidLayoutSubviews()
66-
}
67-
6864
override func viewDidDisappear(_ animated: Bool) {
6965
super.viewDidDisappear(animated)
7066

DuckDuckGo/SettingsViewController.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -544,10 +544,6 @@ class SettingsViewController: UITableViewController {
544544
}
545545
}
546546

547-
override func tableView(_ tableView: UITableView, titleForFooterInSection section: Int) -> String? {
548-
return super.tableView(tableView, titleForFooterInSection: section)
549-
}
550-
551547
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
552548
let rows = super.tableView(tableView, numberOfRowsInSection: section)
553549
if section == appearanceSectionIndex && textSizeCell.isHidden {

DuckDuckGoTests/PrivacyIconLogicTests.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ class PrivacyIconLogicTests: XCTestCase {
3333
static let ddgMainURL = URL(string: "https://duckduckgo.com")!
3434
static let ddgSupportURL = URL(string: "https://duckduckgo.com/email/settings/support")!
3535

36-
override func setUp() {
37-
super.setUp()
38-
}
39-
40-
override func tearDown() {
41-
super.tearDown()
42-
}
43-
4436
func testPrivacyIconIsShieldForPageURL() {
4537
let url = PrivacyIconLogicTests.insecurePageURL
4638
let icon = PrivacyIconLogic.privacyIcon(for: url)

DuckDuckGoTests/TrackerAnimationLogicTests.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ class TrackerAnimationLogicTests: XCTestCase {
3030

3131
static let pageURL = URL(string: "https://example.com")!
3232

33-
override func setUp() {
34-
super.setUp()
35-
}
36-
37-
override func tearDown() {
38-
super.tearDown()
39-
}
40-
4133
func testAnimationLogicToAnimateTrackersIfAnyBlocked() {
4234
let trackerInfo = makeBlockedTrackerInfo(pageURL: Self.pageURL)
4335
XCTAssertTrue(TrackerAnimationLogic.shouldAnimateTrackers(for: trackerInfo))

IntegrationTests/AtbServerTests.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@ class AtbServerTests: XCTestCase {
3737
loader = StatisticsLoader(statisticsStore: store)
3838

3939
}
40-
41-
override func tearDown() {
42-
super.tearDown()
43-
}
44-
40+
4541
func testExtiCall() {
4642

4743
let waitForCompletion = expectation(description: "wait for completion")

0 commit comments

Comments
 (0)