aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-11-08 18:00:04 +0100
committerMs2ger <ms2ger@gmail.com>2014-11-08 18:00:04 +0100
commitaa83388f38d19f26503d3a2bceea0b6a963bd9f3 (patch)
treeda0dcec6ed78d7851ad64e4c8d6cfbdacd707ef6
parent25e9830938d012f6cf0b98780d3034ea03f82078 (diff)
downloadservo-aa83388f38d19f26503d3a2bceea0b6a963bd9f3.tar.gz
servo-aa83388f38d19f26503d3a2bceea0b6a963bd9f3.zip
Remove VoidVal.
There are no undefined constants in IDL.
-rw-r--r--components/script/dom/bindings/codegen/CodegenRust.py1
-rw-r--r--components/script/dom/bindings/utils.rs3
2 files changed, 0 insertions, 4 deletions
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 72bc0f4fdb4..d90c7cc5be9 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -4539,7 +4539,6 @@ class CGBindingRoot(CGThing):
'dom::bindings::utils::{Reflectable}',
'dom::bindings::utils::{squirrel_away_unique}',
'dom::bindings::utils::{ThrowingConstructor, unwrap, unwrap_jsmanaged}',
- 'dom::bindings::utils::VoidVal',
'dom::bindings::utils::get_dictionary_property',
'dom::bindings::utils::{NativeProperties, NativePropertyHooks}',
'dom::bindings::trace::JSTraceable',
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs
index dff63a23c51..f8b497bdcd4 100644
--- a/components/script/dom/bindings/utils.rs
+++ b/components/script/dom/bindings/utils.rs
@@ -198,8 +198,6 @@ pub enum ConstantVal {
BoolVal(bool),
/// `null` constant.
NullVal,
- /// `undefined` constant.
- VoidVal
}
/// Representation of an IDL constant.
@@ -220,7 +218,6 @@ impl ConstantSpec {
UintVal(u) => UInt32Value(u),
DoubleVal(d) => DoubleValue(d),
BoolVal(b) => BooleanValue(b),
- VoidVal => UndefinedValue(),
}
}
}