mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Remove Prefable::terminator 🤖
This commit is contained in:
parent
adcecda047
commit
a20db08f06
3 changed files with 17 additions and 17 deletions
|
@ -1409,8 +1409,7 @@ class PropertyDefiner:
|
|||
assert len(array) != 0
|
||||
specs = []
|
||||
prefableSpecs = []
|
||||
prefableTemplate = ' Prefable { pref: %s, specs: %s[%d], terminator: %s }'
|
||||
hasTerminator = 'true' if specTerminator else 'false'
|
||||
prefableTemplate = ' Prefable { pref: %s, specs: %s[%d] }'
|
||||
|
||||
for cond, members in groupby(array, lambda m: getCondition(m, self.descriptor)):
|
||||
currentSpecs = [specTemplate % getDataTuple(m) for m in members]
|
||||
|
@ -1418,7 +1417,7 @@ class PropertyDefiner:
|
|||
currentSpecs.append(specTerminator)
|
||||
specs.append("&[\n" + ",\n".join(currentSpecs) + "]\n")
|
||||
prefableSpecs.append(
|
||||
prefableTemplate % (cond, name + "_specs", len(specs) - 1, hasTerminator))
|
||||
prefableTemplate % (cond, name + "_specs", len(specs) - 1))
|
||||
|
||||
specsArray = ("const %s_specs: &'static [&'static[%s]] = &[\n" +
|
||||
",\n".join(specs) + "\n" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue