From 7daa97c7e5de3dac14b4d1c8a923448b025e3c09 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 10 Apr 2014 22:13:08 -0400 Subject: Remove abstract_self. --- .../script/dom/bindings/codegen/CodegenRust.py | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/components/script/dom/bindings/codegen/CodegenRust.py') 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 + -- cgit v1.2.3