2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-14 11:15:26 +00:00

Code cleanup

This commit is contained in:
Oliver
2021-07-15 11:27:19 +10:00
parent 2a5bb4631b
commit d2ce3fadf1
19 changed files with 36 additions and 81 deletions

View File

@ -163,10 +163,6 @@ Future<void> showStatusCodeError(int status, {int expected = 200}) async {
}
Future<void> showTimeoutError() async {
// Use OneContext as "sometimes" context is null here?
var ctx = OneContext().context;
await showServerError(L10().timeout, L10().noResponse);
}
@ -174,8 +170,6 @@ void showFormDialog(String title, {String? acceptText, String? cancelText, Globa
BuildContext? dialogContext;
var ctx = OneContext().context;
String _accept = acceptText ?? L10().save;
String _cancel = cancelText ?? L10().cancel;