Fix builds.

This commit is contained in:
Stephen Chung
2021-12-17 16:32:34 +08:00
parent 42638db0fb
commit 29a9b3878d
3 changed files with 5 additions and 9 deletions

View File

@@ -551,10 +551,6 @@ mod range_functions {
let _range = range;
true
}
#[rhai_fn(get = "is_empty", name = "is_empty", pure)]
pub fn is_empty(range: &mut ExclusiveRange) -> bool {
range.is_empty()
}
#[rhai_fn(get = "start", name = "start", pure)]
pub fn start_inclusive(range: &mut InclusiveRange) -> INT {
*range.start()
@@ -567,10 +563,6 @@ mod range_functions {
pub fn contains_inclusive(range: &mut InclusiveRange, value: INT) -> bool {
range.contains(&value)
}
#[rhai_fn(get = "is_empty", name = "is_empty", pure)]
pub fn is_empty_inclusive(range: &mut InclusiveRange) -> bool {
range.is_empty()
}
#[rhai_fn(get = "is_inclusive", name = "is_inclusive", pure)]
pub fn is_inclusive_inclusive(range: &mut InclusiveRange) -> bool {
let _range = range;