Skip to content

Commit f055da5

Browse files
authored
Remove state checker code (#6978)
This isnw't used on Android anymore and I'm not planning to use it for iOs. I think we can ditch it.
1 parent 8499cbd commit f055da5

File tree

4 files changed

+0
-325
lines changed

4 files changed

+0
-325
lines changed

components/fxa-client/src/fxa_client.udl

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,50 +1105,6 @@ interface IncomingDeviceCommand {
11051105
TabsClosed(Device? sender, CloseTabsPayload payload);
11061106
};
11071107

1108-
/// Machinery for dry-run testing of FxaAuthStateMachine
1109-
///
1110-
/// Remove this once we've migrated the firefox-android and firefox-ios code to using FxaAuthStateMachine
1111-
/// https:///bugzilla.mozilla.org/show_bug.cgi?id=1867793
1112-
1113-
interface FxaStateMachineChecker {
1114-
constructor();
1115-
1116-
void handle_public_event(FxaEvent event);
1117-
void handle_internal_event(FxaStateCheckerEvent event);
1118-
void check_public_state(FxaState state);
1119-
void check_internal_state(FxaStateCheckerState state);
1120-
};
1121-
1122-
[Enum]
1123-
interface FxaStateCheckerEvent {
1124-
GetAuthStateSuccess(FxaRustAuthState auth_state);
1125-
BeginOAuthFlowSuccess(string oauth_url);
1126-
BeginPairingFlowSuccess(string oauth_url);
1127-
CompleteOAuthFlowSuccess();
1128-
InitializeDeviceSuccess();
1129-
EnsureDeviceCapabilitiesSuccess();
1130-
CheckAuthorizationStatusSuccess(boolean active);
1131-
DisconnectSuccess();
1132-
GetProfileSuccess();
1133-
CallError();
1134-
EnsureCapabilitiesAuthError();
1135-
};
1136-
1137-
[Enum]
1138-
interface FxaStateCheckerState {
1139-
GetAuthState();
1140-
BeginOAuthFlow(sequence<string> scopes, string entrypoint);
1141-
BeginPairingFlow(string pairing_url, sequence<string> scopes, string entrypoint);
1142-
CompleteOAuthFlow(string code, string state);
1143-
InitializeDevice();
1144-
EnsureDeviceCapabilities();
1145-
CheckAuthorizationStatus();
1146-
Disconnect();
1147-
GetProfile();
1148-
Complete(FxaState new_state);
1149-
Cancel();
1150-
};
1151-
11521108
dictionary UserData {
11531109
string session_token;
11541110
string uid;

components/fxa-client/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ pub use push::{
6969
};
7070
pub use token::{AccessTokenInfo, AuthorizationParameters, ScopedKey};
7171

72-
// Used for auth state checking. Remove this once firefox-android and firefox-ios are migrated to
73-
// using FxaAuthStateMachine
74-
pub use state_machine::checker::{
75-
FxaStateCheckerEvent, FxaStateCheckerState, FxaStateMachineChecker,
76-
};
77-
7872
/// Result returned by internal functions
7973
pub type Result<T> = std::result::Result<T, Error>;
8074
/// Result returned by public-facing API functions

components/fxa-client/src/state_machine/checker.rs

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

components/fxa-client/src/state_machine/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use error_support::breadcrumb;
1010

1111
use crate::{internal::FirefoxAccount, DeviceConfig, Error, FxaEvent, FxaState, Result};
1212

13-
pub mod checker;
1413
mod display;
1514
mod internal_machines;
1615

0 commit comments

Comments
 (0)