Cleanup unneccessary function in AboutRepositoryTableViewController

This commit is contained in:
Bob Sun 2018-11-16 23:12:01 -08:00
parent b152d7e1e9
commit f0eb9c47ed
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -74,20 +74,6 @@ class AboutRepositoryTableViewController: BasicStaticTableViewController {
} }
} }
private func numberOfPasswordString() -> String {
let formatter = NumberFormatter()
formatter.numberStyle = NumberFormatter.Style.decimal
var numberOfCommits: UInt = 0
do {
if let _ = try self.passwordStore.storeRepository?.currentBranch().oid {
numberOfCommits = self.passwordStore.storeRepository?.numberOfCommits(inCurrentBranch: NSErrorPointer(nilLiteral: ())) ?? 0
}
} catch {
print(error)
}
return formatter.string(from: NSNumber(value: numberOfCommits)) ?? ""
}
private func numberOfPasswordsString() -> String { private func numberOfPasswordsString() -> String {
let formatter = NumberFormatter() let formatter = NumberFormatter()
formatter.numberStyle = NumberFormatter.Style.decimal formatter.numberStyle = NumberFormatter.Style.decimal