From 878ca53d78e9ee787ae9c0a58d43a9f0e4e39ff6 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 7 Mar 2025 19:01:11 -0800 Subject: [PATCH] hw: remove unused function --- system/hardware/base.h | 2 -- system/hardware/pc/hardware.h | 8 -------- system/hardware/tici/hardware.h | 7 ------- 3 files changed, 17 deletions(-) diff --git a/system/hardware/base.h b/system/hardware/base.h index 732f0f99e0..baf0f3c3da 100644 --- a/system/hardware/base.h +++ b/system/hardware/base.h @@ -34,8 +34,6 @@ public: static bool get_ssh_enabled() { return false; } static void set_ssh_enabled(bool enabled) {} - static void config_cpu_rendering(bool offscreen); - static bool PC() { return false; } static bool TICI() { return false; } static bool AGNOS() { return false; } diff --git a/system/hardware/pc/hardware.h b/system/hardware/pc/hardware.h index 5dea184ca6..978dd771c8 100644 --- a/system/hardware/pc/hardware.h +++ b/system/hardware/pc/hardware.h @@ -12,12 +12,4 @@ public: static bool PC() { return true; } static bool TICI() { return util::getenv("TICI", 0) == 1; } static bool AGNOS() { return util::getenv("TICI", 0) == 1; } - - static void config_cpu_rendering(bool offscreen) { - if (offscreen) { - setenv("QT_QPA_PLATFORM", "offscreen", 1); - } - setenv("__GLX_VENDOR_LIBRARY_NAME", "mesa", 1); - setenv("LP_NUM_THREADS", "0", 1); // disable threading so we stay on our assigned CPU - } }; diff --git a/system/hardware/tici/hardware.h b/system/hardware/tici/hardware.h index 7d73f86ee9..179ef54a9b 100644 --- a/system/hardware/tici/hardware.h +++ b/system/hardware/tici/hardware.h @@ -109,11 +109,4 @@ public: static bool get_ssh_enabled() { return Params().getBool("SshEnabled"); } static void set_ssh_enabled(bool enabled) { Params().putBool("SshEnabled", enabled); } - - static void config_cpu_rendering(bool offscreen) { - if (offscreen) { - setenv("QT_QPA_PLATFORM", "eglfs", 1); // offscreen doesn't work with EGL/GLES - } - setenv("LP_NUM_THREADS", "0", 1); // disable threading so we stay on our assigned CPU - } };