From f350ef22fe6f0eb3247afe1b6cf84678e264c406 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 30 Oct 2023 23:39:07 +0100 Subject: Remove unused function --- src/QuickMedia.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index ddb8c12..e00bb85 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -73,23 +73,6 @@ static int FPS_IDLE; static const double IDLE_TIMEOUT_SEC = 2.0; static const mgl::vec2i AVATAR_THUMBNAIL_SIZE(std::floor(32), std::floor(32)); -static int monitor_info_get_fps(const XRRModeInfo *mode_info) { - double v_total = mode_info->vTotal; - if(mode_info->modeFlags & RR_DoubleScan) { - v_total *= 2; - } - - if(mode_info->modeFlags & RR_Interlace) { - v_total /= 2; - } - - if(mode_info->hTotal > 0 && v_total > 0.0001) { - return std::round((double)mode_info->dotClock / ((double)mode_info->hTotal * v_total)); - } else { - return 0; - } -} - struct Logo { const char *dark_theme_path; const char *light_theme_path; -- cgit v1.2.3