drop dead mouse imports from terminal_view
`mouse/button.dart` and `mouse/button_state.dart` were imported but nothing in terminal_view referenced their symbols — analyzer warnings, not infos. Removed. Probable origin: a half-landed mouse-forwarding refactor (the actual work is now scoped under T-74); the imports can come back when the real wiring lands. Removing them in the meantime keeps the analyze gate clean. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"exported_at": "2026-05-06T20:28:51Z",
|
||||
"exported_at": "2026-05-06T20:28:58Z",
|
||||
"decisions": [
|
||||
{
|
||||
"id": "D-1",
|
||||
|
||||
@@ -8,8 +8,6 @@ import 'package:flutter/services.dart';
|
||||
import 'package:clide/src/terminal/src/core/buffer/cell_offset.dart';
|
||||
|
||||
import 'package:clide/src/terminal/src/core/input/keys.dart';
|
||||
import 'package:clide/src/terminal/src/core/mouse/button.dart';
|
||||
import 'package:clide/src/terminal/src/core/mouse/button_state.dart';
|
||||
import 'package:clide/src/terminal/src/terminal.dart';
|
||||
import 'package:clide/src/terminal/src/ui/controller.dart';
|
||||
import 'package:clide/src/terminal/src/ui/cursor_type.dart';
|
||||
@@ -167,8 +165,7 @@ class TerminalViewState extends State<TerminalView> {
|
||||
|
||||
late ScrollController _scrollController;
|
||||
|
||||
RenderTerminal get renderTerminal =>
|
||||
_viewportKey.currentContext!.findRenderObject() as RenderTerminal;
|
||||
RenderTerminal get renderTerminal => _viewportKey.currentContext!.findRenderObject() as RenderTerminal;
|
||||
|
||||
void _onPointerSignal(PointerSignalEvent event) {
|
||||
if (event is! PointerScrollEvent) return;
|
||||
@@ -306,10 +303,8 @@ class TerminalViewState extends State<TerminalView> {
|
||||
terminalController: _controller,
|
||||
onTapUp: _onTapUp,
|
||||
onTapDown: _onTapDown,
|
||||
onSecondaryTapDown:
|
||||
widget.onSecondaryTapDown != null ? _onSecondaryTapDown : null,
|
||||
onSecondaryTapUp:
|
||||
widget.onSecondaryTapUp != null ? _onSecondaryTapUp : null,
|
||||
onSecondaryTapDown: widget.onSecondaryTapDown != null ? _onSecondaryTapDown : null,
|
||||
onSecondaryTapUp: widget.onSecondaryTapUp != null ? _onSecondaryTapUp : null,
|
||||
readOnly: widget.readOnly,
|
||||
child: child,
|
||||
);
|
||||
@@ -344,8 +339,7 @@ class TerminalViewState extends State<TerminalView> {
|
||||
}
|
||||
|
||||
Rect get globalCursorRect {
|
||||
return renderTerminal.localToGlobal(renderTerminal.cursorOffset) &
|
||||
renderTerminal.cellSize;
|
||||
return renderTerminal.localToGlobal(renderTerminal.cursorOffset) & renderTerminal.cellSize;
|
||||
}
|
||||
|
||||
void _onTapUp(TapUpDetails details) {
|
||||
|
||||
Reference in New Issue
Block a user