From 1683f073b7a0471dd66a91bbf35c9ad00018c83f Mon Sep 17 00:00:00 2001 From: dab246 Date: Wed, 21 Aug 2024 18:33:18 +0700 Subject: [PATCH] Remove `dropZoneWidth` & `dropZoneHeight` are not used --- .../presentation/widgets/web/web_editor_widget.dart | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/features/composer/presentation/widgets/web/web_editor_widget.dart b/lib/features/composer/presentation/widgets/web/web_editor_widget.dart index 6abcbb6e80..b611e71e1a 100644 --- a/lib/features/composer/presentation/widgets/web/web_editor_widget.dart +++ b/lib/features/composer/presentation/widgets/web/web_editor_widget.dart @@ -53,13 +53,9 @@ class WebEditorWidget extends StatefulWidget { class _WebEditorState extends State { - static const double _offsetHeight = 50; - static const double _offsetWidth = 90; static const double _defaultHtmlEditorHeight = 550; late HtmlEditorController _editorController; - double? dropZoneWidth; - double? dropZoneHeight; final ValueNotifier _htmlEditorHeight = ValueNotifier(_defaultHtmlEditorHeight); bool _dropListenerRegistered = false; Function(Event)? _dropListener; @@ -70,14 +66,8 @@ class _WebEditorState extends State { _editorController = widget.editorController; log('_WebEditorState::initState:height: ${widget.height} | width: ${widget.width}'); if (widget.height != null) { - dropZoneHeight = widget.height! - _offsetHeight; _htmlEditorHeight.value = widget.height ?? _defaultHtmlEditorHeight; } - if (widget.width != null) { - dropZoneWidth = widget.width! - _offsetWidth; - } - log('_WebEditorState::initState:dropZoneWidth: $dropZoneWidth | dropZoneHeight: $dropZoneHeight'); - _dropListener = (event) { if (event is MessageEvent) { if (jsonDecode(event.data)['name'] == HtmlUtils.registerDropListener.name) {