Skip to content

Commit fd078f0

Browse files
committed
shellcheck: drop duplicate egli_glvnd_icd_from_json in lib_display
Remove a shadowed duplicate definition of egli_glvnd_icd_from_json() in lib_display.sh to address ShellCheck SC2317 without changing behavior. Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
1 parent e2005a1 commit fd078f0

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

Runner/utils/lib_display.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,17 +1070,6 @@ egli_pick_platform_flag() {
10701070
return 0
10711071
}
10721072

1073-
egli_glvnd_icd_from_json() {
1074-
# Extract ICD library_path from a GLVND EGL vendor JSON (no jq).
1075-
# Prints the value (e.g., libEGL_adreno.so.1) or empty on failure.
1076-
f="$1"
1077-
[ -r "$f" ] || { printf '%s\n' ""; return 0; }
1078-
1079-
# Match a line containing "library_path" : "...."
1080-
# Keep it resilient to whitespace.
1081-
sed -n 's/.*"library_path"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' "$f" | head -n 1
1082-
}
1083-
10841073
egli_glvnd_icd_from_json() {
10851074
# Extract ICD library_path from a GLVND EGL vendor JSON (no jq).
10861075
# Prints the value (e.g., libEGL_adreno.so.1) or empty on failure.

0 commit comments

Comments
 (0)