@@ -556,33 +556,7 @@ impl<U: EventListener> Crosswords<U> {
556
556
TermDamage :: Partial ( TermDamageIterator :: new ( & self . damage . lines , display_offset) )
557
557
}
558
558
559
- /// Emit damage event based on current damage state
560
- pub fn emit_damage_event ( & self ) {
561
- let display_offset = self . grid . display_offset ( ) ;
562
- let _damage = if self . damage . full {
563
- TerminalDamage :: Full
564
- } else {
565
- // Collect damaged lines
566
- let damaged_lines: BTreeSet < LineDamage > = self
567
- . damage
568
- . lines
569
- . iter ( )
570
- . filter ( |line| line. is_damaged ( ) )
571
- . map ( |line| LineDamage :: new ( line. line + display_offset, true ) )
572
- . collect ( ) ;
573
559
574
- if damaged_lines. is_empty ( ) {
575
- // Check if cursor moved
576
- if self . damage . last_cursor != self . grid . cursor . pos {
577
- TerminalDamage :: CursorOnly
578
- } else {
579
- return ; // No damage to emit
580
- }
581
- } else {
582
- TerminalDamage :: Partial ( damaged_lines)
583
- }
584
- } ;
585
- }
586
560
587
561
/// Peek damage event based on current damage state
588
562
pub fn peek_damage_event ( & self ) -> Option < TerminalDamage > {
@@ -1241,21 +1215,7 @@ impl<U: EventListener> Crosswords<U> {
1241
1215
#[ inline]
1242
1216
pub fn mark_line_damaged ( & mut self , line : Line ) {
1243
1217
let line_idx = line. 0 as usize ;
1244
-
1245
- // Check if this line is already damaged
1246
- let was_damaged = if line_idx < self . damage . lines . len ( ) {
1247
- self . damage . lines [ line_idx] . is_damaged ( )
1248
- } else {
1249
- false
1250
- } ;
1251
-
1252
1218
self . damage . damage_line ( line_idx) ;
1253
-
1254
- // Only emit event if line wasn't already damaged
1255
- if !was_damaged {
1256
- let _damaged_line = LineDamage :: new ( line_idx, true ) ;
1257
- // Event removed - damage is tracked internally
1258
- }
1259
1219
}
1260
1220
1261
1221
pub fn selection_to_string ( & self ) -> Option < String > {
0 commit comments