summaryrefslogtreecommitdiff
path: root/dhall/src/syntax/ast/import.rs
diff options
context:
space:
mode:
authorNadrieril2020-02-17 18:09:34 +0000
committerNadrieril2020-02-17 18:09:41 +0000
commit73571249f9bcf8efe84708a4a9f8665af62e44f0 (patch)
treeeab9fc1b966cd7946fd64cc7f7fdd675fe78e510 /dhall/src/syntax/ast/import.rs
parent06714f925a6588ef5c262bb7a9cf3f9e40f13120 (diff)
Remove some unused code
Diffstat (limited to '')
-rw-r--r--dhall/src/syntax/ast/import.rs24
1 files changed, 0 insertions, 24 deletions
diff --git a/dhall/src/syntax/ast/import.rs b/dhall/src/syntax/ast/import.rs
index da3e99b..7bde6e0 100644
--- a/dhall/src/syntax/ast/import.rs
+++ b/dhall/src/syntax/ast/import.rs
@@ -75,15 +75,6 @@ impl<SE> URL<SE> {
headers,
})
}
- pub fn traverse_mut<'a, Err>(
- &'a mut self,
- f: impl FnOnce(&'a mut SE) -> Result<(), Err>,
- ) -> Result<(), Err> {
- if let Some(header) = &mut self.headers {
- f(header)?;
- }
- Ok(())
- }
}
impl<SE> ImportLocation<SE> {
@@ -99,15 +90,6 @@ impl<SE> ImportLocation<SE> {
Missing => Missing,
})
}
- pub fn traverse_mut<'a, Err>(
- &'a mut self,
- f: impl FnOnce(&'a mut SE) -> Result<(), Err>,
- ) -> Result<(), Err> {
- if let ImportLocation::Remote(url) = self {
- url.traverse_mut(f)?;
- }
- Ok(())
- }
}
impl<SE> Import<SE> {
@@ -121,10 +103,4 @@ impl<SE> Import<SE> {
hash: self.hash.clone(),
})
}
- pub fn traverse_mut<'a, Err>(
- &'a mut self,
- f: impl FnOnce(&'a mut SE) -> Result<(), Err>,
- ) -> Result<(), Err> {
- self.location.traverse_mut(f)
- }
}