Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Moreno committed Jul 27, 2020
1 parent ce1aef8 commit e6a8283
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ impl Context {
Value::Empty
}
}
pub fn values(&self) -> ValuesMap {
let mut value_map = ValuesMap::new();
for (key, value) in &*self.global_scope.read().unwrap() {
value_map.insert(key.to_string(), value.clone());
}
for (key, value) in &self.external_scope {
value_map.insert(key.to_string(), value.clone());
}
value_map
}
pub fn set_global(&mut self, global_scope: Arc<RwLock<ValuesMap>>) {
self.global_scope = global_scope;
}
Expand Down

0 comments on commit e6a8283

Please sign in to comment.