refactor: Remove BTBV's loadState method
This commit is contained in:
parent
438012d8f8
commit
c1d8073af0
@ -214,11 +214,6 @@ abstract class BlindTrustBeforeVerificationTrustManager extends TrustManager {
|
|||||||
@visibleForOverriding
|
@visibleForOverriding
|
||||||
Future<void> commitState();
|
Future<void> commitState();
|
||||||
|
|
||||||
/// Called when the user wants to restore the state of the trust manager. The format
|
|
||||||
/// and actual storage mechanism is left to the user.
|
|
||||||
@visibleForOverriding
|
|
||||||
Future<void> loadState();
|
|
||||||
|
|
||||||
@visibleForTesting
|
@visibleForTesting
|
||||||
BTBVTrustState getDeviceTrust(String jid, int deviceId) => trustCache[RatchetMapKey(jid, deviceId)]!;
|
BTBVTrustState getDeviceTrust(String jid, int deviceId) => trustCache[RatchetMapKey(jid, deviceId)]!;
|
||||||
}
|
}
|
||||||
@ -228,7 +223,4 @@ abstract class BlindTrustBeforeVerificationTrustManager extends TrustManager {
|
|||||||
class MemoryBTBVTrustManager extends BlindTrustBeforeVerificationTrustManager {
|
class MemoryBTBVTrustManager extends BlindTrustBeforeVerificationTrustManager {
|
||||||
@override
|
@override
|
||||||
Future<void> commitState() async {}
|
Future<void> commitState() async {}
|
||||||
|
|
||||||
@override
|
|
||||||
Future<void> loadState() async {}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user