Remove the Option<Self> arguments from IDLInterface.

This commit is contained in:
Ms2ger 2015-02-19 09:52:48 +01:00
parent dc31d96f65
commit c58213b698
2 changed files with 6 additions and 8 deletions

View file

@ -1920,10 +1920,10 @@ class CGIDLInterface(CGThing):
}
return string.Template("""\
impl IDLInterface for ${type} {
fn get_prototype_id(_: Option<${type}>) -> PrototypeList::ID {
fn get_prototype_id() -> PrototypeList::ID {
PrototypeList::ID::${type}
}
fn get_prototype_depth(_: Option<${type}>) -> uint {
fn get_prototype_depth() -> uint {
${depth}
}
}