TF-1115 Remove method not used

This commit is contained in:
dab246
2022-10-28 11:30:14 +07:00
committed by Dat H. Pham
parent 423a12eea1
commit 1b4f3e4841
3 changed files with 1 additions and 11 deletions
-8
View File
@@ -46,14 +46,6 @@ abstract class BaseController extends GetxController
viewState.value = newState;
}
void getState(Future<Either<Failure, Success>> newStateStream) async {
final state = await newStateStream;
state.fold(
(failure) => onError(failure),
(success) => onData(state)
);
}
void clearState() {
viewState.value = Right(UIState.idle);
}