aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/codegen/CodegenRust.py
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2014-03-11 11:45:50 +0100
committerMs2ger <ms2ger@gmail.com>2014-03-11 11:46:04 +0100
commite54a17bfea4b056c1532d51162203c7eaa275d7a (patch)
tree1a30f2693eec8797b5c5b4ff4c6a119c7d74ff9d /src/components/script/dom/bindings/codegen/CodegenRust.py
parent864f6df8737dd32c618b798d716e110f0e7222ad (diff)
downloadservo-e54a17bfea4b056c1532d51162203c7eaa275d7a.tar.gz
servo-e54a17bfea4b056c1532d51162203c7eaa275d7a.zip
Remove unused CGAbstractStaticMethod class.
Diffstat (limited to 'src/components/script/dom/bindings/codegen/CodegenRust.py')
-rw-r--r--src/components/script/dom/bindings/codegen/CodegenRust.py21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/components/script/dom/bindings/codegen/CodegenRust.py b/src/components/script/dom/bindings/codegen/CodegenRust.py
index 51a5e37f5c8..cf7f61db720 100644
--- a/src/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/src/components/script/dom/bindings/codegen/CodegenRust.py
@@ -2244,14 +2244,11 @@ class CGAbstractMethod(CGThing):
alwaysInline should be True to generate an inline method annotated with
MOZ_ALWAYS_INLINE.
- static should be True to generate a static method, which only has
- a definition.
-
If templateArgs is not None it should be a list of strings containing
template arguments, and the function will be templatized using those
arguments.
"""
- def __init__(self, descriptor, name, returnType, args, inline=False, alwaysInline=False, static=False, extern=False, pub=False, templateArgs=None, unsafe=True):
+ def __init__(self, descriptor, name, returnType, args, inline=False, alwaysInline=False, extern=False, pub=False, templateArgs=None, unsafe=True):
CGThing.__init__(self)
self.descriptor = descriptor
self.name = name
@@ -2259,7 +2256,6 @@ class CGAbstractMethod(CGThing):
self.args = args
self.inline = inline
self.alwaysInline = alwaysInline
- self.static = static
self.extern = extern
self.templateArgs = templateArgs
self.pub = pub;
@@ -2281,9 +2277,6 @@ class CGAbstractMethod(CGThing):
decorators.append('extern')
if not self.extern:
pass
- if self.static:
- #decorators.append('static')
- pass
if self.pub:
decorators.append('pub')
if not decorators:
@@ -2989,18 +2982,6 @@ class CGGenericMethod(CGAbstractBindingMethod):
"let _info: *JSJitInfo = RUST_FUNCTION_VALUE_TO_JITINFO(JS_CALLEE(cx, &*vp));\n"
"return CallJitMethodOp(_info, cx, obj, this as *libc::c_void, argc, &*vp);"))
-class CGAbstractStaticMethod(CGAbstractMethod):
- """
- Abstract base class for codegen of implementation-only (no
- declaration) static methods.
- """
- def __init__(self, descriptor, name, returnType, args):
- CGAbstractMethod.__init__(self, descriptor, name, returnType, args,
- inline=False, static=True)
- def declare(self):
- # We only have implementation
- return ""
-
class CGSpecializedMethod(CGAbstractExternMethod):
"""
A class for generating the C++ code for a specialized method that the JIT