diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-06 17:23:00 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-06 17:23:00 +0000 |
| commit | 698bcf83fc041637191ae7ef92fdeb3a5acb14b8 (patch) | |
| tree | 28a0c33f6d4eb94080cdcbc57ebcae08462dad1f /src/layout.rs | |
| parent | Fix early quit with plugins (diff) | |
| download | sl0ppij-698bcf83fc041637191ae7ef92fdeb3a5acb14b8.tar.gz sl0ppij-698bcf83fc041637191ae7ef92fdeb3a5acb14b8.tar.xz sl0ppij-698bcf83fc041637191ae7ef92fdeb3a5acb14b8.zip | |
Warnings purged and some FIXME's addressed
Diffstat (limited to 'src/layout.rs')
| -rw-r--r-- | src/layout.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/layout.rs b/src/layout.rs index efe7bae6..63f9c962 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -91,7 +91,7 @@ fn split_space( let mut part_positions = split_space(&part_position_and_size, part); pane_positions.append(&mut part_positions); } else { - pane_positions.push((part.clone(), *part_position_and_size)); // FIXME: Probably doesn't need to be cloned + pane_positions.push((part.clone(), *part_position_and_size)); } } pane_positions @@ -180,16 +180,6 @@ impl Layout { total_panes } - // FIXME: I probably shouldn't exist, much less with PathBuf (use &Path) - - pub fn list_plugins(&self) -> Vec<&PathBuf> { - let mut plugins: Vec<_> = self.parts.iter().flat_map(Layout::list_plugins).collect(); - if let Some(path) = &self.plugin { - plugins.push(path); - } - plugins - } - pub fn position_panes_in_space( &self, space: &PositionAndSize, |
