diff options
author | Josh Matthews <josh@joshmatthews.net> | 2014-04-10 22:13:08 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2014-05-03 14:18:30 -0400 |
commit | 7daa97c7e5de3dac14b4d1c8a923448b025e3c09 (patch) | |
tree | 9f7766c799035785d75113838c5950f777b262d1 /src/components/script/dom/bindings/codegen/CodegenRust.py | |
parent | 76783b029e5e10da7fd61ab356a8f80a1eaf32e0 (diff) | |
download | servo-7daa97c7e5de3dac14b4d1c8a923448b025e3c09.tar.gz servo-7daa97c7e5de3dac14b4d1c8a923448b025e3c09.zip |
Remove abstract_self.
Diffstat (limited to 'src/components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r-- | src/components/script/dom/bindings/codegen/CodegenRust.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/components/script/dom/bindings/codegen/CodegenRust.py b/src/components/script/dom/bindings/codegen/CodegenRust.py index a8b75a75456..f73de0ea365 100644 --- a/src/components/script/dom/bindings/codegen/CodegenRust.py +++ b/src/components/script/dom/bindings/codegen/CodegenRust.py @@ -2494,12 +2494,6 @@ class CGSpecializedMethod(CGAbstractExternMethod): nativeName = MakeNativeName(name) extraPre = '' argsPre = [] - if name in self.descriptor.needsAbstract: - abstractName = re.sub(r'<\w+>', '', self.descriptor.nativeType) - extraPre = """ let mut abstract_this = %s::from_raw(this); - let abstract_this = abstract_this.root(&roots); -""" % abstractName - argsPre = ['&mut abstract_this.root_ref()'] return CGWrapper(CGMethodCall(argsPre, nativeName, self.method.isStatic(), self.descriptor, self.method), pre=extraPre + @@ -2552,12 +2546,6 @@ class CGSpecializedGetter(CGAbstractExternMethod): infallible = ('infallible' in self.descriptor.getExtendedAttributes(self.attr, getter=True)) - if name in self.descriptor.needsAbstract: - abstractName = re.sub(r'<\w+>', '', self.descriptor.nativeType) - extraPre = """ let mut abstract_this = %s::from_raw(this); - let abstract_this = abstract_this.root(&roots); -""" % abstractName - argsPre = ['&mut abstract_this.root_ref()'] if self.attr.type.nullable() or not infallible: nativeName = "Get" + nativeName return CGWrapper(CGIndenter(CGGetterCall(argsPre, self.attr.type, nativeName, @@ -2614,12 +2602,6 @@ class CGSpecializedSetter(CGAbstractExternMethod): nativeName = "Set" + MakeNativeName(name) argsPre = [] extraPre = '' - if name in self.descriptor.needsAbstract: - abstractName = re.sub(r'<\w+>', '', self.descriptor.nativeType) - extraPre = """ let mut abstract_this = %s::from_raw(this); - let abstract_this = abstract_this.root(&roots); -""" % abstractName - argsPre = ['&mut abstract_this.root_ref()'] return CGWrapper(CGIndenter(CGSetterCall(argsPre, self.attr.type, nativeName, self.descriptor, self.attr)), pre=extraPre + |