Remove VoidVal.

There are no undefined constants in IDL.
This commit is contained in:
Ms2ger 2014-11-08 18:00:04 +01:00
parent 25e9830938
commit aa83388f38
2 changed files with 0 additions and 4 deletions

View file

@ -4539,7 +4539,6 @@ class CGBindingRoot(CGThing):
'dom::bindings::utils::{Reflectable}', 'dom::bindings::utils::{Reflectable}',
'dom::bindings::utils::{squirrel_away_unique}', 'dom::bindings::utils::{squirrel_away_unique}',
'dom::bindings::utils::{ThrowingConstructor, unwrap, unwrap_jsmanaged}', 'dom::bindings::utils::{ThrowingConstructor, unwrap, unwrap_jsmanaged}',
'dom::bindings::utils::VoidVal',
'dom::bindings::utils::get_dictionary_property', 'dom::bindings::utils::get_dictionary_property',
'dom::bindings::utils::{NativeProperties, NativePropertyHooks}', 'dom::bindings::utils::{NativeProperties, NativePropertyHooks}',
'dom::bindings::trace::JSTraceable', 'dom::bindings::trace::JSTraceable',

View file

@ -198,8 +198,6 @@ pub enum ConstantVal {
BoolVal(bool), BoolVal(bool),
/// `null` constant. /// `null` constant.
NullVal, NullVal,
/// `undefined` constant.
VoidVal
} }
/// Representation of an IDL constant. /// Representation of an IDL constant.
@ -220,7 +218,6 @@ impl ConstantSpec {
UintVal(u) => UInt32Value(u), UintVal(u) => UInt32Value(u),
DoubleVal(d) => DoubleValue(d), DoubleVal(d) => DoubleValue(d),
BoolVal(b) => BooleanValue(b), BoolVal(b) => BooleanValue(b),
VoidVal => UndefinedValue(),
} }
} }
} }