diff options
-rw-r--r-- | src/recite.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/recite.rs b/src/recite.rs index d4128b7..1beee96 100644 --- a/src/recite.rs +++ b/src/recite.rs @@ -186,14 +186,6 @@ impl Meter { /// and that will be used to store the contents of the /// file paths in `next` fn incant_read(verse: &Verse, paths: &Verse, out: &mut String) -> Result<i32, io::Error> { - // // If there are no more verses, throw an error - // if i + 1 >= verses.len() { - // return Err(std::io::Error::new( - // io::ErrorKind::NotFound, - // "read file(s) not specified", - // )); - // } - // Read all file specified in the next verse into 'out', since there // may also be piped output from the last command for path in paths.stanza().iter() { @@ -220,14 +212,6 @@ impl Meter { /// and that will be used to store the contents of the /// file paths in `next` fn incant_write(verse: &Verse, paths: &Verse, out: &mut String) -> Result<i32, io::Error> { - // If there are no more verses, throw an error - // if i + 1 >= verses.len() { - // return Err(std::io::Error::new( - // io::ErrorKind::NotFound, - // "write file(s) not specified", - // )); - // } - // Alias incant_couplet let status = Meter::incant_couplet(verse, out)?; @@ -253,14 +237,6 @@ impl Meter { /// and that will be used to store the contents of the /// file paths in `next` fn incant_addendum(verse: &Verse, paths: &Verse, out: &mut String) -> Result<i32, io::Error> { - // If there are no more verses, throw an error - // if i + 1 >= verses.len() { - // return Err(std::io::Error::new( - // io::ErrorKind::NotFound, - // "write file(s) not specified", - // )); - // } - // Alias incant_couplet let status = Meter::incant_couplet(verse, out)?; |