File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -605,15 +605,6 @@ impl App {
605605 }
606606 }
607607
608- #[ allow( dead_code) ]
609- pub fn is_side_by_side_diff ( & self ) -> bool {
610- if let Some ( diff_pane) = self . pane_registry . get_pane ( & PaneId :: SideBySideDiff ) {
611- diff_pane. visible ( )
612- } else {
613- false
614- }
615- }
616-
617608 pub fn toggle_diff_panel ( & mut self ) {
618609 self . show_diff_panel = !self . show_diff_panel ;
619610 }
@@ -2016,7 +2007,6 @@ mod tests {
20162007
20172008 // Initially in single-pane diff mode
20182009 assert_eq ! ( app. current_information_pane, InformationPane :: Diff ) ;
2019- assert ! ( !app. is_side_by_side_diff( ) ) ;
20202010
20212011 // Switch to side-by-side mode
20222012 app. set_side_by_side_diff ( ) ;
@@ -2028,7 +2018,6 @@ mod tests {
20282018 . visible( )
20292019 ) ;
20302020 assert ! ( !& app. pane_registry. get_pane( & PaneId :: Diff ) . unwrap( ) . visible( ) ) ;
2031- assert ! ( app. is_side_by_side_diff( ) ) ;
20322021
20332022 // Switch back to single-pane mode
20342023 app. set_single_pane_diff ( ) ;
@@ -2041,7 +2030,6 @@ mod tests {
20412030 . visible( )
20422031 ) ;
20432032 assert ! ( & app. pane_registry. get_pane( & PaneId :: Diff ) . unwrap( ) . visible( ) ) ;
2044- assert ! ( !app. is_side_by_side_diff( ) ) ;
20452033 }
20462034
20472035 #[ test]
You can’t perform that action at this time.
0 commit comments