diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-08-17 23:45:03 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-08-17 23:45:03 +0200 |
| commit | 6d7e7d945b315469b80bca3466a96534b2a17639 (patch) | |
| tree | 1b6c5e0ae7fb683ff7f3b6b1d961151a8e467a80 /src/compute/scope.rs | |
| parent | 3cbca56a7195bb2a7996530d584300d697c11dc8 (diff) | |
Tidy up library functions 🧺
Diffstat (limited to 'src/compute/scope.rs')
| -rw-r--r-- | src/compute/scope.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/compute/scope.rs b/src/compute/scope.rs index 1fd4db0b..1c297fde 100644 --- a/src/compute/scope.rs +++ b/src/compute/scope.rs @@ -31,12 +31,6 @@ impl Scope { self.functions.get(name) } - /// Return the function with the given name or the fallback if there is no - /// such function. - pub fn func_or_fallback(&self, name: &str) -> &FuncValue { - self.func(name).unwrap_or_else(|| self.fallback()) - } - /// Return the fallback function. pub fn fallback(&self) -> &FuncValue { &self.fallback |
