aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-10-30 23:39:07 +0100
committerdec05eba <dec05eba@protonmail.com>2023-10-30 23:39:07 +0100
commitf350ef22fe6f0eb3247afe1b6cf84678e264c406 (patch)
treecd92c17cebb89850de35b2342bde79d1444b3d84 /src
parent2241473b6bb6dcabd56ab566c983282a3d45955d (diff)
Remove unused function
Diffstat (limited to 'src')
-rw-r--r--src/QuickMedia.cpp17
1 files changed, 0 insertions, 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;