Remove c_preproc.trimquotes

This commit is contained in:
Thomas Nagy 2016-12-03 06:47:27 +01:00
parent ceedab882d
commit 90993f1153
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
3 changed files with 2 additions and 22 deletions

View File

@ -8,3 +8,5 @@ NEW IN WAF 2.0.0
* Remove the BuildContext.rule decorator
* Remove Task.update_outputs, Task.always_run
* Remove atleast-version, exact-version and max-version from conf.check_cfg
* Remove c_preproc.trimquotes

View File

@ -16,12 +16,6 @@ from waflib.Logs import pprint
def configure(conf):
pass
def trimquotes(s):
if not s: return ''
s = s.rstrip()
if s[0] == "'" and s[-1] == "'": return s[1:-1]
return s
def build(bld):
bld.failure = 0

View File

@ -155,22 +155,6 @@ for x, syms in enumerate(ops):
for u in syms.split():
prec[u] = x
def trimquotes(s):
"""
Remove the single quotes around an expression::
trimquotes("'test'") == "test"
:param s: expression to transform
:type s: string
:rtype: string
"""
# TODO remove in waf 2.0
if not s: return ''
s = s.rstrip()
if s[0] == "'" and s[-1] == "'": return s[1:-1]
return s
def reduce_nums(val_1, val_2, val_op):
"""
Apply arithmetic rules to compute a result