Skip to content

Commit 819371f

Browse files
authored
Remove unused elements (#530)
1 parent ff6a1ed commit 819371f

27 files changed

+9
-111
lines changed

pass.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@
203203
DCFB77A31E500D9C008DE471 /* PasswordDetailTitleTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = DCFB77A21E500D9C008DE471 /* PasswordDetailTitleTableViewCell.xib */; };
204204
DCFB77A71E502DF9008DE471 /* EditPasswordTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCFB77A61E502DF9008DE471 /* EditPasswordTableViewController.swift */; };
205205
DCFB77A91E502FF6008DE471 /* PasswordEditorTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCFB77A81E502FF6008DE471 /* PasswordEditorTableViewController.swift */; };
206-
DCFB77AB1E503729008DE471 /* ContentProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = DCFB77AA1E503729008DE471 /* ContentProvider.swift */; };
207206
/* End PBXBuildFile section */
208207

209208
/* Begin PBXContainerItemProxy section */
@@ -491,7 +490,6 @@
491490
DCFB77A21E500D9C008DE471 /* PasswordDetailTitleTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PasswordDetailTitleTableViewCell.xib; sourceTree = "<group>"; };
492491
DCFB77A61E502DF9008DE471 /* EditPasswordTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = EditPasswordTableViewController.swift; sourceTree = "<group>"; };
493492
DCFB77A81E502FF6008DE471 /* PasswordEditorTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PasswordEditorTableViewController.swift; sourceTree = "<group>"; };
494-
DCFB77AA1E503729008DE471 /* ContentProvider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContentProvider.swift; sourceTree = "<group>"; };
495493
/* End PBXFileReference section */
496494

497495
/* Begin PBXFrameworksBuildPhase section */
@@ -955,7 +953,6 @@
955953
isa = PBXGroup;
956954
children = (
957955
9A8F9EE1259EDD520027CE15 /* PasswordTableViewCell.swift */,
958-
DCFB77AA1E503729008DE471 /* ContentProvider.swift */,
959956
DCFB779C1E4F40C7008DE471 /* FillPasswordTableViewCell.swift */,
960957
DCFB779D1E4F40C7008DE471 /* FillPasswordTableViewCell.xib */,
961958
DC4914941E434301007FF592 /* LabelTableViewCell.swift */,
@@ -1603,7 +1600,6 @@
16031600
9AFC87E225B3B5C6008D6060 /* PasswordNavigationDataSource.swift in Sources */,
16041601
30650E7123F82AF8005CCD5E /* SSHKeyFileImportTableViewController.swift in Sources */,
16051602
DC193FFA1E49B4430077E0A3 /* AdvancedSettingsTableViewController.swift in Sources */,
1606-
DCFB77AB1E503729008DE471 /* ContentProvider.swift in Sources */,
16071603
9AFC880025B51EC3008D6060 /* PasswordEncryptor.swift in Sources */,
16081604
DCA0499C1E3362F400522E8F /* PGPKeyURLImportTableViewController.swift in Sources */,
16091605
DC4914961E434301007FF592 /* LabelTableViewCell.swift in Sources */,

pass/Controllers/BasicStaticTableViewController.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,12 @@ import passKit
1111
import SafariServices
1212
import UIKit
1313

14-
enum CellDataType {
15-
case link, segue, empty, detail
16-
}
17-
1814
enum CellDataStyle {
1915
case value1, defaultStyle
2016
}
2117

2218
enum CellDataKey {
23-
case style, type, title, link, accessoryType, detailDisclosureAction, detailDisclosureData, detailText, action
19+
case style, title, link, accessoryType, detailDisclosureAction, detailDisclosureData, detailText, action
2420
}
2521

2622
class BasicStaticTableViewController: UITableViewController, MFMailComposeViewControllerDelegate {

pass/Controllers/PGPKeyImporter.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import passKit
1010

1111
protocol PGPKeyImporter: KeyImporter {
1212
func doAfterImport()
13-
14-
func saveImportedKeys()
1513
}
1614

1715
extension PGPKeyImporter {

pass/Controllers/PasswordDetailTableViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
1818
private var oneTimePasswordIndexPath: IndexPath?
1919
private var shouldPopCurrentView = false
2020
private let passwordStore = PasswordStore.shared
21-
private let keychain = AppKeychain.shared
2221

2322
private lazy var editUIBarButtonItem: UIBarButtonItem = {
2423
let uiBarButtonItem = UIBarButtonItem(barButtonSystemItem: .edit, target: self, action: #selector(pressEdit))

pass/Controllers/PasswordEditorTableViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ enum PasswordEditorCellType: Equatable {
2626
}
2727

2828
enum PasswordEditorCellKey {
29-
case type, title, content, placeholders
29+
case type, title, content
3030
}
3131

3232
protocol PasswordSettingSliderTableViewCellDelegate: AnyObject {

pass/Controllers/SSHKeyArmorImportTableViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ class SSHKeyArmorImportTableViewController: AutoCellHeightUITableViewController,
1313
@IBOutlet var armorPrivateKeyTextView: UITextView!
1414
@IBOutlet var scanPrivateKeyCell: UITableViewCell!
1515

16-
private var gitSSHPrivateKeyPassphrase: String?
1716
private var armorPrivateKey: String?
1817

1918
private var scanner = QRKeyScanner(keyType: .sshPrivate)

pass/Controllers/SettingsTableViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class SettingsTableViewController: UITableViewController, UITabBarControllerDele
1717
@IBOutlet var passwordRepositoryTableViewCell: UITableViewCell!
1818
var setPasscodeLockAlert: UIAlertController?
1919

20-
let passwordStore = PasswordStore.shared
2120
let keychain = AppKeychain.shared
2221
var passcodeLock = PasscodeLock.shared
2322

pass/Helpers/SecurePasteboard.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
// Copyright © 2017 Bob Sun. All rights reserved.
77
//
88

9-
import Foundation
109
import UIKit
1110

12-
public class SecurePasteboard {
13-
public static let shared = SecurePasteboard()
11+
class SecurePasteboard {
12+
static let shared = SecurePasteboard()
1413

1514
private var backgroundTaskID = UIBackgroundTaskIdentifier.invalid
1615

pass/Views/ContentProvider.swift

Lines changed: 0 additions & 12 deletions
This file was deleted.

pass/Views/FillPasswordTableViewCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protocol FillPasswordTableViewCellDelegate: AnyObject {
1414
func showHidePasswordSettings()
1515
}
1616

17-
class FillPasswordTableViewCell: UITableViewCell, ContentProvider {
17+
class FillPasswordTableViewCell: UITableViewCell {
1818
@IBOutlet var contentTextField: UITextField!
1919
@IBOutlet var settingButton: UIButton!
2020
@IBOutlet var generateButton: UIButton!

0 commit comments

Comments
 (0)