[gnome-shell/gnome-3-38] st/button: Remove unused spacing member from private struct
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-38] st/button: Remove unused spacing member from private struct
- Date: Wed, 2 Dec 2020 23:03:51 +0000 (UTC)
commit e64ecd30489cf5afba8d227b0ad4297fa080eefd
Author: Sebastian Keller <skeller gnome org>
Date: Thu Oct 29 20:59:29 2020 +0100
st/button: Remove unused spacing member from private struct
It is only ever written, but never used anywhere.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1489>
(cherry picked from commit 330b44ede5c5459b4c50a9dfe4d1e472286b9f79)
src/st/st-button.c | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/src/st/st-button.c b/src/st/st-button.c
index 0e440fa534..1be9de5f09 100644
--- a/src/st/st-button.c
+++ b/src/st/st-button.c
@@ -83,8 +83,6 @@ struct _StButtonPrivate
guint pressed : 3;
guint grabbed : 3;
guint is_checked : 1;
-
- gint spacing;
};
static guint button_signals[LAST_SIGNAL] = { 0, };
@@ -111,17 +109,10 @@ static void
st_button_style_changed (StWidget *widget)
{
StButton *button = ST_BUTTON (widget);
- StButtonPrivate *priv = st_button_get_instance_private (button);
StButtonClass *button_class = ST_BUTTON_GET_CLASS (button);
- StThemeNode *theme_node = st_widget_get_theme_node (ST_WIDGET (button));
- double spacing;
ST_WIDGET_CLASS (st_button_parent_class)->style_changed (widget);
- spacing = 6;
- st_theme_node_lookup_length (theme_node, "border-spacing", FALSE, &spacing);
- priv->spacing = (int)(0.5 + spacing);
-
/* update the label styling */
st_button_update_label_style (button);
@@ -575,7 +566,6 @@ st_button_init (StButton *button)
{
StButtonPrivate *priv = st_button_get_instance_private (button);
- priv->spacing = 6;
priv->button_mask = ST_BUTTON_ONE;
clutter_actor_set_reactive (CLUTTER_ACTOR (button), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]