mirror of
https://github.com/nushell/nushell.git
synced 2025-06-19 17:38:14 +02:00
Remove dead code from FileStructure
in nu-command
This commit is contained in:
parent
475664ff9e
commit
8d306b92fa
@ -14,20 +14,11 @@ pub struct FileStructure {
|
|||||||
pub resources: Vec<Resource>,
|
pub resources: Vec<Resource>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
impl FileStructure {
|
impl FileStructure {
|
||||||
pub fn new() -> FileStructure {
|
pub fn new() -> FileStructure {
|
||||||
FileStructure { resources: vec![] }
|
FileStructure { resources: vec![] }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn contains_more_than_one_file(&self) -> bool {
|
|
||||||
self.resources.len() > 1
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn contains_files(&self) -> bool {
|
|
||||||
!self.resources.is_empty()
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn paths_applying_with<F>(
|
pub fn paths_applying_with<F>(
|
||||||
&mut self,
|
&mut self,
|
||||||
to: F,
|
to: F,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user