aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/codegen/BindingGen.py
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-03-11 13:34:05 +0100
committerMs2ger <ms2ger@gmail.com>2014-03-11 21:22:43 +0100
commitdd160b63925a610659d0514d9fac3f0f34fc7d81 (patch)
tree62f4e39e4d39a633a0e82c8ba4372d8816068238 /src/components/script/dom/bindings/codegen/BindingGen.py
parent8c1f6bc72dc2435445b3bb880e470a957aa1ff95 (diff)
downloadservo-dd160b63925a610659d0514d9fac3f0f34fc7d81.tar.gz
servo-dd160b63925a610659d0514d9fac3f0f34fc7d81.zip
Merge CGThing.declare and CGThing.define.
This distincion is carried over from the C++ codegen, but it has no meaning in Rust.
Diffstat (limited to 'src/components/script/dom/bindings/codegen/BindingGen.py')
-rw-r--r--src/components/script/dom/bindings/codegen/BindingGen.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/script/dom/bindings/codegen/BindingGen.py b/src/components/script/dom/bindings/codegen/BindingGen.py
index 8a5149d4421..408280dacfb 100644
--- a/src/components/script/dom/bindings/codegen/BindingGen.py
+++ b/src/components/script/dom/bindings/codegen/BindingGen.py
@@ -19,8 +19,7 @@ def generate_binding_rs(config, outputprefix, webidlfile):
filename = outputprefix + ".rs"
root = CGBindingRoot(config, outputprefix, webidlfile)
- root2 = CGBindingRoot(config, outputprefix, webidlfile)
- if replaceFileIfChanged(filename, root.declare() + root2.define()):
+ if replaceFileIfChanged(filename, root.define()):
print "Generating binding implementation: %s" % (filename)
def main():