Skip to content

Commit fa03c3a

Browse files
Remove dead code is_side_by_side_diff (#50)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: myaple <10523487+myaple@users.noreply.github.com>
1 parent ae9f19b commit fa03c3a

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/ui.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)