aboutsummaryrefslogtreecommitdiff
path: root/swaynag/render.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-22 11:04:56 -0500
committerGitHub <noreply@github.com>2019-01-22 11:04:56 -0500
commit04aa41de340b82d4eccc5c0c86fa6f9c178b72d5 (patch)
tree75c61907f094838e23899231ec5ec955c530f692 /swaynag/render.c
parent71a37ad186ba3080338b2ecb5a3e640600aefc1f (diff)
parent0af5b26e41c5141d4094652133c230d76bf82e56 (diff)
Merge pull request #3496 from mstoeckl/fix-san
Fix dead stores found by scan-build
Diffstat (limited to 'swaynag/render.c')
-rw-r--r--swaynag/render.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/swaynag/render.c b/swaynag/render.c
index c9f4ef1d..f6507e67 100644
--- a/swaynag/render.c
+++ b/swaynag/render.c
@@ -8,9 +8,6 @@
#include "wlr-layer-shell-unstable-v1-client-protocol.h"
static uint32_t render_message(cairo_t *cairo, struct swaynag *swaynag) {
- uint32_t height = swaynag->height * swaynag->scale;
- height -= swaynag->type->bar_border_thickness * swaynag->scale;
-
int text_width, text_height;
get_text_size(cairo, swaynag->type->font, &text_width, &text_height, NULL,
swaynag->scale, true, "%s", swaynag->message);
@@ -77,8 +74,6 @@ static int get_detailed_scroll_button_width(cairo_t *cairo,
static uint32_t render_detailed(cairo_t *cairo, struct swaynag *swaynag,
uint32_t y) {
uint32_t width = swaynag->width * swaynag->scale;
- uint32_t height = swaynag->height * swaynag->scale;
- height -= swaynag->type->bar_border_thickness * swaynag->scale;
int border = swaynag->type->details_border_thickness * swaynag->scale;
int padding = swaynag->type->message_padding * swaynag->scale;
@@ -174,8 +169,6 @@ static uint32_t render_detailed(cairo_t *cairo, struct swaynag *swaynag,
static uint32_t render_button(cairo_t *cairo, struct swaynag *swaynag,
int button_index, int *x) {
- uint32_t height = swaynag->height * swaynag->scale;
- height -= swaynag->type->bar_border_thickness * swaynag->scale;
struct swaynag_button *button = swaynag->buttons->items[button_index];
int text_width, text_height;