From fc69261029ae9d1e7e5267dd5fa6b4cf96156189 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Fri, 13 May 2022 14:01:05 +0200 Subject: [PATCH] refactor: Move implies into moxlib --- lib/service/xmpp.dart | 1 + lib/shared/helpers.dart | 5 ----- pubspec.lock | 8 ++++---- pubspec.yaml | 4 ++-- test/helpers_test.dart | 9 --------- 5 files changed, 7 insertions(+), 20 deletions(-) diff --git a/lib/service/xmpp.dart b/lib/service/xmpp.dart index 701ae5a5..bea70bb1 100644 --- a/lib/service/xmpp.dart +++ b/lib/service/xmpp.dart @@ -35,6 +35,7 @@ import "package:get_it/get_it.dart"; import "package:connectivity_plus/connectivity_plus.dart"; import "package:flutter_secure_storage/flutter_secure_storage.dart"; import "package:moxplatform/moxplatform.dart"; +import "package:moxlib/moxlib.dart"; import "package:logging/logging.dart"; import "package:permission_handler/permission_handler.dart"; diff --git a/lib/shared/helpers.dart b/lib/shared/helpers.dart index d99b1cee..25be1f71 100644 --- a/lib/shared/helpers.dart +++ b/lib/shared/helpers.dart @@ -134,11 +134,6 @@ T? firstNotNull(List items) { return null; } -/// The mathematical a -> b -bool implies(bool a, bool b) { - return !a || b; -} - /// Attempt to guess a mimetype from its file extension String? guessMimeTypeFromExtension(String ext) { switch (ext) { diff --git a/pubspec.lock b/pubspec.lock index 265e539c..d1508170 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -668,28 +668,28 @@ packages: name: moxlib url: "https://pub.polynom.me" source: hosted - version: "0.1.1" + version: "0.1.3" moxplatform: dependency: "direct main" description: name: moxplatform url: "https://pub.polynom.me" source: hosted - version: "0.1.4" + version: "0.1.6" moxplatform_android: dependency: transitive description: name: moxplatform_android url: "https://pub.polynom.me" source: hosted - version: "0.1.4" + version: "0.1.6" moxplatform_platform_interface: dependency: transitive description: name: moxplatform_platform_interface url: "https://pub.polynom.me" source: hosted - version: "0.1.4" + version: "0.1.6" moxxyv2_builders: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index f59cc700..d447f3ee 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -80,10 +80,10 @@ dependencies: version: 0.1.0 moxlib: hosted: https://pub.polynom.me - version: 0.1.1 + version: 0.1.3 moxplatform: hosted: https://pub.polynom.me - version: 0.1.4 + version: 0.1.6 dev_dependencies: #flutter_test: diff --git a/test/helpers_test.dart b/test/helpers_test.dart index d4a3387d..20d1152b 100644 --- a/test/helpers_test.dart +++ b/test/helpers_test.dart @@ -211,13 +211,4 @@ void main() { expect(firstNotNull([null, null, 2]), 2); }); }); - - group("implies", () { - test("Truth table test", () { - expect(implies(true, true), true); - expect(implies(true, false), false); - expect(implies(false, true), true); - expect(implies(false, false), true); - }); - }); }