[libadwaita/wip/exalm/animation-cleanup: 8/10] animation: Remove adw_animation_set_status()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/animation-cleanup: 8/10] animation: Remove adw_animation_set_status()
- Date: Thu, 18 Nov 2021 13:56:48 +0000 (UTC)
commit 72d0b80aedc72b624a0f7f755532320a764ff290
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Nov 18 18:53:48 2021 +0500
animation: Remove adw_animation_set_status()
It's unused.
src/adw-animation-private.h | 4 +---
src/adw-animation.c | 23 -----------------------
2 files changed, 1 insertion(+), 26 deletions(-)
---
diff --git a/src/adw-animation-private.h b/src/adw-animation-private.h
index 0607c2a6..c1398fbb 100644
--- a/src/adw-animation-private.h
+++ b/src/adw-animation-private.h
@@ -65,9 +65,7 @@ AdwAnimationTarget *adw_animation_get_target (AdwAnimation *self);
double adw_animation_get_value (AdwAnimation *self);
-AdwAnimationStatus adw_animation_get_status (AdwAnimation *self);
-void adw_animation_set_status (AdwAnimation *self,
- AdwAnimationStatus status);
+AdwAnimationStatus adw_animation_get_status (AdwAnimation *self);
void adw_animation_start (AdwAnimation *self);
void adw_animation_stop (AdwAnimation *self);
diff --git a/src/adw-animation.c b/src/adw-animation.c
index 71d69ae2..aed9aea0 100644
--- a/src/adw-animation.c
+++ b/src/adw-animation.c
@@ -232,10 +232,6 @@ adw_animation_set_property (GObject *object,
g_set_object (&priv->target, g_value_get_object (value));
break;
- case PROP_STATUS:
- adw_animation_set_status (self, g_value_get_enum (value));
- break;
-
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
@@ -407,25 +403,6 @@ adw_animation_get_status (AdwAnimation *self)
return priv->status;
}
-void
-adw_animation_set_status (AdwAnimation *self,
- AdwAnimationStatus status)
-{
- AdwAnimationPrivate *priv;
-
- g_return_if_fail (ADW_IS_ANIMATION (self));
- g_return_if_fail (status <= ADW_ANIMATION_STATUS_CANCELED);
-
- priv = adw_animation_get_instance_private (self);
-
- if (priv->status == status)
- return;
-
- priv->status = status;
-
- g_object_notify_by_pspec (G_OBJECT (self), props[PROP_STATUS]);
-}
-
void
adw_animation_start (AdwAnimation *self)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]