Cleanup unneccessary function in AboutRepositoryTableViewController
This commit is contained in:
parent
b152d7e1e9
commit
f0eb9c47ed
1 changed files with 0 additions and 14 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue