mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove some dead code from CGAbstractMethod._decorators.
This commit is contained in:
parent
e54a17bfea
commit
d1f5b0971d
1 changed files with 6 additions and 8 deletions
|
@ -2266,24 +2266,22 @@ class CGAbstractMethod(CGThing):
|
||||||
if self.templateArgs is None:
|
if self.templateArgs is None:
|
||||||
return ''
|
return ''
|
||||||
return '<%s>\n' % ', '.join(self.templateArgs)
|
return '<%s>\n' % ', '.join(self.templateArgs)
|
||||||
|
|
||||||
def _decorators(self):
|
def _decorators(self):
|
||||||
decorators = []
|
decorators = []
|
||||||
if self.alwaysInline:
|
if self.alwaysInline:
|
||||||
decorators.append('#[inline(always)]')
|
decorators.append('#[inline(always)]')
|
||||||
elif self.inline:
|
|
||||||
#decorators.append('inline')
|
|
||||||
pass
|
|
||||||
if self.extern:
|
if self.extern:
|
||||||
decorators.append('extern')
|
decorators.append('extern')
|
||||||
if not self.extern:
|
|
||||||
pass
|
|
||||||
if self.pub:
|
if self.pub:
|
||||||
decorators.append('pub')
|
decorators.append('pub')
|
||||||
|
|
||||||
if not decorators:
|
if not decorators:
|
||||||
return ''
|
return ''
|
||||||
#maybeNewline = " " if self.inline else "\n"
|
return ' '.join(decorators) + ' '
|
||||||
maybeNewline = " "
|
|
||||||
return ' '.join(decorators) + maybeNewline
|
|
||||||
def _returnType(self):
|
def _returnType(self):
|
||||||
return (" -> %s" % self.returnType) if self.returnType != "void" else ""
|
return (" -> %s" % self.returnType) if self.returnType != "void" else ""
|
||||||
def _unsafe_open(self):
|
def _unsafe_open(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue