diff options
author | 2020-03-14 06:33:17 +0100 | |
---|---|---|
committer | 2020-03-14 06:33:17 +0100 | |
commit | b55746b1e1d8a5ff759c86f52063fa6ce0c02a29 (patch) | |
tree | 55ad831e5562fea95ce6d9131fbdd724d780fb6b /native/src | |
parent | a79603e4ca5e0cee46a737ef0b1af5c69ddb49b6 (diff) | |
download | iced-b55746b1e1d8a5ff759c86f52063fa6ce0c02a29.tar.gz iced-b55746b1e1d8a5ff759c86f52063fa6ce0c02a29.tar.bz2 iced-b55746b1e1d8a5ff759c86f52063fa6ce0c02a29.zip |
Remove `PaneGrid::split_*` helpers
We can use the `split` method directly instead.
Diffstat (limited to 'native/src')
-rw-r--r-- | native/src/widget/pane_grid/state.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/native/src/widget/pane_grid/state.rs b/native/src/widget/pane_grid/state.rs index dc66e32a..f46252c7 100644 --- a/native/src/widget/pane_grid/state.rs +++ b/native/src/widget/pane_grid/state.rs @@ -98,18 +98,6 @@ impl<T> State<T> { self.internal.focus(pane); } - pub fn split_vertically(&mut self, pane: &Pane, state: T) -> Option<Pane> { - self.split(Axis::Vertical, pane, state) - } - - pub fn split_horizontally( - &mut self, - pane: &Pane, - state: T, - ) -> Option<Pane> { - self.split(Axis::Horizontal, pane, state) - } - pub fn split(&mut self, axis: Axis, pane: &Pane, state: T) -> Option<Pane> { let node = self.internal.layout.find(pane)?; |