Skip to content

Commit

Permalink
Remove some unused members of session_t
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Jul 26, 2019
1 parent 357968c commit 4772103
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 4772103

Please sign in to comment.