From 477210333451ebbd800338d4aba8eaaeb6141de7 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Fri, 26 Jul 2019 03:39:01 +0100 Subject: [PATCH] Remove some unused members of session_t Signed-off-by: Yuxuan Shui --- src/common.h | 4 ---- src/compton.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/common.h b/src/common.h index 22d9c28..f2ddd19 100644 --- a/src/common.h +++ b/src/common.h @@ -209,8 +209,6 @@ typedef struct session { bool tmout_unredir_hit; /// Whether we need to redraw the screen bool redraw_needed; - /// Program start time. - struct timeval time_start; /// The region needs to painted on next paint. region_t *damage; /// The region damaged on the last paint. @@ -230,8 +228,6 @@ typedef struct session { ignore_t **ignore_tail; // Cached blur convolution kernels. struct x_convolution_kernel **blur_kerns_cache; - /// Reset program after next paint. - bool reset:1; /// If compton should quit bool quit:1; /// Whether there are pending updates, like window creation, etc. diff --git a/src/compton.c b/src/compton.c index 447068c..924388d 100644 --- a/src/compton.c +++ b/src/compton.c @@ -1516,7 +1516,6 @@ static session_t *session_init(int argc, char **argv, Display *dpy, #ifdef CONFIG_OPENGL .glx_prog_win = GLX_PROG_MAIN_INIT, #endif - .time_start = {0, 0}, .redirected = false, .alpha_picts = NULL, .fade_time = 0L, @@ -1590,7 +1589,6 @@ static session_t *session_init(int argc, char **argv, Display *dpy, pixman_region32_init(&ps->screen_reg); ps->ignore_tail = &ps->ignore_head; - gettimeofday(&ps->time_start, NULL); ps->o.show_all_xerrors = all_xerrors;