[gtk/matthiasc/for-master] Drop an unused private function
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] Drop an unused private function
- Date: Sat, 31 Oct 2020 13:24:00 +0000 (UTC)
commit 1702a4c22330894a8f34c5ea8fb3b8d9105642e5
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Oct 30 22:51:54 2020 -0400
Drop an unused private function
gtk/gtkhsla.c | 18 ------------------
gtk/gtkhslaprivate.h | 5 -----
2 files changed, 23 deletions(-)
---
diff --git a/gtk/gtkhsla.c b/gtk/gtkhsla.c
index 9692e3e59f..ad1298df70 100644
--- a/gtk/gtkhsla.c
+++ b/gtk/gtkhsla.c
@@ -21,24 +21,6 @@
#include <math.h>
-void
-_gtk_hsla_init (GtkHSLA *hsla,
- float hue,
- float saturation,
- float lightness,
- float alpha)
-{
- g_return_if_fail (hsla != NULL);
-
- if (hue >= 0)
- hsla->hue = fmod (hue, 360);
- else
- hsla->hue = fmod (hue, 360) + 360;
- hsla->saturation = CLAMP (saturation, 0, 1);
- hsla->lightness = CLAMP (lightness, 0, 1);
- hsla->alpha = CLAMP (alpha, 0, 1);
-}
-
void
_gtk_hsla_init_from_rgba (GtkHSLA *hsla,
const GdkRGBA *rgba)
diff --git a/gtk/gtkhslaprivate.h b/gtk/gtkhslaprivate.h
index 145daf7461..304dcfb899 100644
--- a/gtk/gtkhslaprivate.h
+++ b/gtk/gtkhslaprivate.h
@@ -31,11 +31,6 @@ struct _GtkHSLA {
float alpha;
};
-void _gtk_hsla_init (GtkHSLA *hsla,
- float hue,
- float saturation,
- float lightness,
- float alpha);
void _gtk_hsla_init_from_rgba (GtkHSLA *hsla,
const GdkRGBA *rgba);
/* Yes, I can name that function like this! */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]