Mesa (main): glsl/tests: remove some dead code
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Aug 14 22:06:58 UTC 2021
Module: Mesa
Branch: main
Commit: 3f99ff8a0edb2d1bd79d89a141b79b8810e5ba54
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f99ff8a0edb2d1bd79d89a141b79b8810e5ba54
Author: Eric Engestrom <eric at engestrom.ch>
Date: Sat Aug 7 11:01:54 2021 +0100
glsl/tests: remove some dead code
Suggested-by: Dylan Baker <dylan at pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3674>
---
src/compiler/glsl/tests/sexps.py | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/compiler/glsl/tests/sexps.py b/src/compiler/glsl/tests/sexps.py
index 36fd7251eb3..fae8bc899db 100644
--- a/src/compiler/glsl/tests/sexps.py
+++ b/src/compiler/glsl/tests/sexps.py
@@ -28,7 +28,6 @@
# as ['constant', 'float', ['1.000000']].
import re
-import sys
def check_sexp(sexp):
"""Verify that the argument is a proper sexp.
@@ -40,7 +39,7 @@ def check_sexp(sexp):
if isinstance(sexp, list):
for s in sexp:
check_sexp(s)
- elif not isinstance(sexp, (str, bytes)):
+ elif not isinstance(sexp, str):
raise Exception('Not a sexp: {0!r}'.format(sexp))
def parse_sexp(sexp):
@@ -73,8 +72,6 @@ def sexp_to_string(sexp):
"""
if isinstance(sexp, str):
return sexp
- if isinstance(sexp, bytes):
- return sexp.encode('utf-8')
assert isinstance(sexp, list)
result = ''
for s in sexp:
More information about the mesa-commit
mailing list