TF-1115 Remove method not used
This commit is contained in:
@@ -46,14 +46,6 @@ abstract class BaseController extends GetxController
|
|||||||
viewState.value = newState;
|
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() {
|
void clearState() {
|
||||||
viewState.value = Right(UIState.idle);
|
viewState.value = Right(UIState.idle);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1184,9 +1184,6 @@ class ComposerController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void setIdentityDefault() {
|
|
||||||
}
|
|
||||||
|
|
||||||
void selectIdentity(Identity? newIdentity) {
|
void selectIdentity(Identity? newIdentity) {
|
||||||
final formerIdentity = identitySelected.value;
|
final formerIdentity = identitySelected.value;
|
||||||
identitySelected.value = newIdentity;
|
identitySelected.value = newIdentity;
|
||||||
|
|||||||
@@ -374,6 +374,7 @@ class ThreadController extends BaseController {
|
|||||||
|
|
||||||
void _getAllEmailSuccess(GetAllEmailSuccess success) {
|
void _getAllEmailSuccess(GetAllEmailSuccess success) {
|
||||||
_currentEmailState = success.currentEmailState;
|
_currentEmailState = success.currentEmailState;
|
||||||
|
log('ThreadController::_getAllEmailSuccess():_currentEmailState: $_currentEmailState');
|
||||||
emailList.value = success.emailList;
|
emailList.value = success.emailList;
|
||||||
if (listEmailController.hasClients) {
|
if (listEmailController.hasClients) {
|
||||||
listEmailController.animateTo(0, duration: const Duration(milliseconds: 500), curve: Curves.fastOutSlowIn);
|
listEmailController.animateTo(0, duration: const Duration(milliseconds: 500), curve: Curves.fastOutSlowIn);
|
||||||
|
|||||||
Reference in New Issue
Block a user