From 26ac269df4e80be03bc650dd0c14b6728ac7e313 Mon Sep 17 00:00:00 2001 From: MadcowOG Date: Fri, 24 Feb 2023 04:01:29 -0800 Subject: [PATCH] Removed unnecessary function --- src/bar.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/bar.c b/src/bar.c index 17a9674..012cfc1 100644 --- a/src/bar.c +++ b/src/bar.c @@ -65,7 +65,6 @@ static Font getFont(void); static BarComponent bar_component_create(PangoContext* context, PangoFontDescription* description); static void bar_component_render(Bar* bar, BarComponent* component, cairo_t* painter, uint width, int* x); static int bar_component_width(BarComponent* component); -static int bar_component_height(BarComponent* component); static Font bar_font = {NULL, 0}; @@ -139,12 +138,6 @@ int bar_component_width(BarComponent* component) { return PANGO_PIXELS(w); } -int bar_component_height(BarComponent* component) { - int h; - pango_layout_get_size(component->layout, NULL, &h); - return PANGO_PIXELS(h); -} - void bar_set_colorscheme(Bar* bar, const int** scheme) { for (int i = 0; i < 4; i++) { bar->foreground[i] = scheme[0][i];