diff options
| author | Nathan Jaremko | 2019-02-24 18:11:04 -0500 |
|---|---|---|
| committer | Nathan Jaremko | 2019-02-24 18:11:04 -0500 |
| commit | 23b4500614a73140b023ad819b14bd90781d58ac (patch) | |
| tree | f1f90f8a8f7c56ec6906ace5ea242332aa9ded19 /src/structs.rs | |
| parent | 22e617eec8e2d8da36788ae40fb53c2ed2ebe734 (diff) | |
| download | podcast-23b4500614a73140b023ad819b14bd90781d58ac.tar.bz2 | |
Fix sub command
Diffstat (limited to 'src/structs.rs')
| -rw-r--r-- | src/structs.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/structs.rs b/src/structs.rs index 56c1674..d6bad40 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -211,18 +211,6 @@ impl Podcast { )) } - pub fn delete(title: &str) -> Result<()> { - let mut path = get_xml_dir()?; - let mut filename = String::from(title); - filename.push_str(".xml"); - path.push(filename); - fs::remove_file(path).chain_err(|| UNABLE_TO_REMOVE_FILE) - } - - pub fn delete_all() -> Result<()> { - fs::remove_dir_all(get_xml_dir()?).chain_err(|| UNABLE_TO_READ_DIRECTORY) - } - pub fn episodes(&self) -> Vec<Episode> { let mut result = Vec::new(); for item in self.0.items().to_owned() { |
