From 448dd106da2e4751d88131e58e097ef06638154c Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 9 Oct 2021 11:31:24 +0100 Subject: [PATCH] meson: drop impossible `if no platform` branch We've already ensured a few lines above that there is at least `surfaceless` in the list. Signed-off-by: Eric Engestrom Reviewed-by: Adam Jackson Part-of: --- meson.build | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 59cee728070..4fb4cfc5555 100644 --- a/meson.build +++ b/meson.build @@ -487,11 +487,7 @@ if with_egl egl_native_platform = get_option('egl-native-platform') if egl_native_platform.contains('auto') - if _platforms.length() != 0 - egl_native_platform = _platforms[0] - else - egl_native_platform = 'surfaceless' - endif + egl_native_platform = _platforms[0] endif endif