mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove obsolete geckolib/generate_properties_rs.py
It is unused since https://github.com/servo/servo/pull/10749
This commit is contained in:
parent
37604401d0
commit
e945d11fd7
1 changed files with 0 additions and 22 deletions
|
@ -1,22 +0,0 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from mako import exceptions
|
||||
from mako.template import Template
|
||||
|
||||
try:
|
||||
style_template = Template(filename=os.environ['STYLE_TEMPLATE'],
|
||||
input_encoding='utf8')
|
||||
style_template.render(PRODUCT='gecko')
|
||||
|
||||
geckolib_template = Template(filename=os.environ['GECKOLIB_TEMPLATE'], input_encoding='utf8')
|
||||
output = geckolib_template.render(STYLE_STRUCTS=style_template.module.STYLE_STRUCTS,
|
||||
to_rust_ident=style_template.module.to_rust_ident)
|
||||
print(output.encode('utf8'))
|
||||
except:
|
||||
sys.stderr.write(exceptions.text_error_template().render().encode('utf8'))
|
||||
sys.exit(1)
|
Loading…
Add table
Add a link
Reference in a new issue