From fb10acaf4345260588610ee1394b545b107d3908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Beni=C4=87?= Date: Wed, 23 Oct 2024 13:16:02 +0200 Subject: [PATCH] but why? --- lib/display.dart | 7 ------- lib/displays_manager.dart | 4 +--- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/display.dart b/lib/display.dart index 12b9a10..9bf37a5 100644 --- a/lib/display.dart +++ b/lib/display.dart @@ -4,13 +4,6 @@ Display displayFromJson(Map json) => Display( name: json['name'], rotation: json['rotation']); -/// for release please check response from invokeMethod -Display displayReleaseFromJson(Map json) => Display( - displayId: json['a'], - flag: json['b'], - name: json['d'], - rotation: json['c']); - /// The default Display id, which is the id of the built-in primary display /// assuming there is one. const int DEFAULT_DISPLAY = 0; diff --git a/lib/displays_manager.dart b/lib/displays_manager.dart index 113a108..dc5ec50 100644 --- a/lib/displays_manager.dart +++ b/lib/displays_manager.dart @@ -65,9 +65,7 @@ class DisplayManager { List displays = []; for (var element in origins) { final map = jsonDecode(jsonEncode(element)); - displays.add(kReleaseMode - ? displayReleaseFromJson(map as Map) - : displayFromJson(map as Map)); + displays.add(displayFromJson(map as Map)); } return displays; }