diff --git a/cyberwow/lib/controller/helper.dart b/cyberwow/lib/controller/helper.dart deleted file mode 100644 index 9513d25..0000000 --- a/cyberwow/lib/controller/helper.dart +++ /dev/null @@ -1,36 +0,0 @@ -/* - -Copyright 2019 fuwa - -This file is part of CyberWOW. - -CyberWOW is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -CyberWOW is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with CyberWOW. If not, see . - -*/ - -import 'dart:async'; -import 'dart:io'; - -import 'package:path_provider/path_provider.dart'; -import 'package:flutter/foundation.dart'; - -Future getBinaryPath(final String name) async { - final tmpDir = await getTemporaryDirectory(); - return tmpDir.path + '/' + name; -} - -Future binaryExists(final String name) async { - final binPath = await getBinaryPath(name); - return new File(binPath).exists(); -} diff --git a/cyberwow/lib/controller/process/run.dart b/cyberwow/lib/controller/process/run.dart index e74490f..5aa2850 100644 --- a/cyberwow/lib/controller/process/run.dart +++ b/cyberwow/lib/controller/process/run.dart @@ -26,7 +26,6 @@ import 'dart:io'; import 'dart:async'; import 'dart:convert'; -import '../helper.dart'; import '../../config.dart' as config; import '../../logging.dart'; import '../../logic/sensor/helper.dart' as helper; diff --git a/cyberwow/lib/state/loading.dart b/cyberwow/lib/state/loading.dart index 3c9bd38..2fd8751 100644 --- a/cyberwow/lib/state/loading.dart +++ b/cyberwow/lib/state/loading.dart @@ -21,7 +21,6 @@ along with CyberWOW. If not, see . import 'package:shared_preferences/shared_preferences.dart'; -import '../controller/helper.dart'; import '../config.dart' as config; import '../logging.dart'; import '../helper.dart';