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; }