1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-04 09:33:14 +00:00

[refactor] Remove some unused getters from the account model

This commit is contained in:
addison
2021-11-05 11:40:39 -04:00
parent 3902737392
commit b9aac4a404

View File

@@ -182,14 +182,5 @@ export class Account {
return false;
}
private get hasMasterKey(): boolean {
return this.cryptoMasterKey != null;
}
private get isActive(): boolean {
const diffSeconds = ((new Date()).getTime() - this.lastActive) / 1000;
return diffSeconds < (this.vaultTimeout * 60);
}
}