mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove unused CGAbstractStaticMethod class.
This commit is contained in:
parent
864f6df873
commit
e54a17bfea
1 changed files with 1 additions and 20 deletions
|
@ -2244,14 +2244,11 @@ class CGAbstractMethod(CGThing):
|
||||||
alwaysInline should be True to generate an inline method annotated with
|
alwaysInline should be True to generate an inline method annotated with
|
||||||
MOZ_ALWAYS_INLINE.
|
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
|
If templateArgs is not None it should be a list of strings containing
|
||||||
template arguments, and the function will be templatized using those
|
template arguments, and the function will be templatized using those
|
||||||
arguments.
|
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)
|
CGThing.__init__(self)
|
||||||
self.descriptor = descriptor
|
self.descriptor = descriptor
|
||||||
self.name = name
|
self.name = name
|
||||||
|
@ -2259,7 +2256,6 @@ class CGAbstractMethod(CGThing):
|
||||||
self.args = args
|
self.args = args
|
||||||
self.inline = inline
|
self.inline = inline
|
||||||
self.alwaysInline = alwaysInline
|
self.alwaysInline = alwaysInline
|
||||||
self.static = static
|
|
||||||
self.extern = extern
|
self.extern = extern
|
||||||
self.templateArgs = templateArgs
|
self.templateArgs = templateArgs
|
||||||
self.pub = pub;
|
self.pub = pub;
|
||||||
|
@ -2281,9 +2277,6 @@ class CGAbstractMethod(CGThing):
|
||||||
decorators.append('extern')
|
decorators.append('extern')
|
||||||
if not self.extern:
|
if not self.extern:
|
||||||
pass
|
pass
|
||||||
if self.static:
|
|
||||||
#decorators.append('static')
|
|
||||||
pass
|
|
||||||
if self.pub:
|
if self.pub:
|
||||||
decorators.append('pub')
|
decorators.append('pub')
|
||||||
if not decorators:
|
if not decorators:
|
||||||
|
@ -2989,18 +2982,6 @@ class CGGenericMethod(CGAbstractBindingMethod):
|
||||||
"let _info: *JSJitInfo = RUST_FUNCTION_VALUE_TO_JITINFO(JS_CALLEE(cx, &*vp));\n"
|
"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);"))
|
"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):
|
class CGSpecializedMethod(CGAbstractExternMethod):
|
||||||
"""
|
"""
|
||||||
A class for generating the C++ code for a specialized method that the JIT
|
A class for generating the C++ code for a specialized method that the JIT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue