glsl/tests: remove some dead code
Suggested-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3674>
This commit is contained in:

committed by
Marge Bot

parent
773a70f9cb
commit
3f99ff8a0e
@@ -28,7 +28,6 @@
|
|||||||
# as ['constant', 'float', ['1.000000']].
|
# as ['constant', 'float', ['1.000000']].
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
|
|
||||||
def check_sexp(sexp):
|
def check_sexp(sexp):
|
||||||
"""Verify that the argument is a proper sexp.
|
"""Verify that the argument is a proper sexp.
|
||||||
@@ -40,7 +39,7 @@ def check_sexp(sexp):
|
|||||||
if isinstance(sexp, list):
|
if isinstance(sexp, list):
|
||||||
for s in sexp:
|
for s in sexp:
|
||||||
check_sexp(s)
|
check_sexp(s)
|
||||||
elif not isinstance(sexp, (str, bytes)):
|
elif not isinstance(sexp, str):
|
||||||
raise Exception('Not a sexp: {0!r}'.format(sexp))
|
raise Exception('Not a sexp: {0!r}'.format(sexp))
|
||||||
|
|
||||||
def parse_sexp(sexp):
|
def parse_sexp(sexp):
|
||||||
@@ -73,8 +72,6 @@ def sexp_to_string(sexp):
|
|||||||
"""
|
"""
|
||||||
if isinstance(sexp, str):
|
if isinstance(sexp, str):
|
||||||
return sexp
|
return sexp
|
||||||
if isinstance(sexp, bytes):
|
|
||||||
return sexp.encode('utf-8')
|
|
||||||
assert isinstance(sexp, list)
|
assert isinstance(sexp, list)
|
||||||
result = ''
|
result = ''
|
||||||
for s in sexp:
|
for s in sexp:
|
||||||
|
Reference in New Issue
Block a user