mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Remove references to nullable any from testbinding.
'any' is inherently nullable, so nullable any doesn't exist.
This commit is contained in:
parent
0ea0d1ae4b
commit
6219d5b24b
1 changed files with 0 additions and 2 deletions
|
@ -129,7 +129,6 @@ pub trait TestBindingMethods {
|
||||||
fn ReceiveNullableByteString(&self) -> Option<ByteString> { Some(ByteString::new(vec!())) }
|
fn ReceiveNullableByteString(&self) -> Option<ByteString> { Some(ByteString::new(vec!())) }
|
||||||
fn ReceiveNullableEnum(&self) -> Option<TestEnum> { Some(_empty) }
|
fn ReceiveNullableEnum(&self) -> Option<TestEnum> { Some(_empty) }
|
||||||
fn ReceiveNullableInterface(&self) -> Option<Temporary<Blob>>;
|
fn ReceiveNullableInterface(&self) -> Option<Temporary<Blob>>;
|
||||||
fn ReceiveNullableAny(&self, _: *mut JSContext) -> Option<JSVal> { Some(NullValue()) }
|
|
||||||
fn ReceiveNullableUnion(&self) -> Option<HTMLElementOrLong> { Some(eLong(0)) }
|
fn ReceiveNullableUnion(&self) -> Option<HTMLElementOrLong> { Some(eLong(0)) }
|
||||||
fn ReceiveNullableUnion2(&self) -> Option<EventOrString> { Some(eString("".to_string())) }
|
fn ReceiveNullableUnion2(&self) -> Option<EventOrString> { Some(eString("".to_string())) }
|
||||||
|
|
||||||
|
@ -170,7 +169,6 @@ pub trait TestBindingMethods {
|
||||||
fn PassNullableInterface(&self, _: Option<JSRef<Blob>>) {}
|
fn PassNullableInterface(&self, _: Option<JSRef<Blob>>) {}
|
||||||
fn PassNullableUnion(&self, _: Option<HTMLElementOrLong>) {}
|
fn PassNullableUnion(&self, _: Option<HTMLElementOrLong>) {}
|
||||||
fn PassNullableUnion2(&self, _: Option<EventOrString>) {}
|
fn PassNullableUnion2(&self, _: Option<EventOrString>) {}
|
||||||
fn PassNullableAny(&self, _: *mut JSContext, _: Option<JSVal>) {}
|
|
||||||
|
|
||||||
fn PassOptionalBoolean(&self, _: Option<bool>) {}
|
fn PassOptionalBoolean(&self, _: Option<bool>) {}
|
||||||
fn PassOptionalByte(&self, _: Option<i8>) {}
|
fn PassOptionalByte(&self, _: Option<i8>) {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue