From 5f53983105c83a649c47283577e4115f2d57d22d Mon Sep 17 00:00:00 2001 From: Monsta Date: Thu, 24 Dec 2015 16:41:39 +0300 Subject: eel: remove unused function --- eel/eel-canvas.c | 36 ------------------------------------ eel/eel-canvas.h | 7 ------- 2 files changed, 43 deletions(-) (limited to 'eel') diff --git a/eel/eel-canvas.c b/eel/eel-canvas.c index f0245f7a..21216a61 100644 --- a/eel/eel-canvas.c +++ b/eel/eel-canvas.c @@ -3815,42 +3815,6 @@ eel_canvas_world_to_window (EelCanvas *canvas, double worldx, double worldy, *winy = (canvas->pixels_per_unit)*(worldy - canvas->scroll_y1) + canvas->zoom_yofs; } - - -/** - * eel_canvas_get_color: - * @canvas: A canvas. - * @spec: X color specification, or NULL for "transparent". - * @color: Returns the allocated color. - * - * Allocates a color based on the specified X color specification. As a - * convenience to item implementations, it returns TRUE if the color was - * allocated, or FALSE if the specification was NULL. A NULL color - * specification is considered as "transparent" by the canvas. - * - * Return value: TRUE if @spec is non-NULL and the color is allocated. If @spec - * is NULL, then returns FALSE. - **/ -int -eel_canvas_get_color (EelCanvas *canvas, const char *spec, GdkColor *color) -{ - g_return_val_if_fail (EEL_IS_CANVAS (canvas), FALSE); - g_return_val_if_fail (color != NULL, FALSE); - - if (!spec) - { - color->pixel = 0; - color->red = 0; - color->green = 0; - color->blue = 0; - return FALSE; - } - - gdk_color_parse (spec, color); - - return TRUE; -} - static gboolean boolean_handled_accumulator (GSignalInvocationHint *ihint, GValue *return_accu, diff --git a/eel/eel-canvas.h b/eel/eel-canvas.h index 8f49141a..6aa227e0 100644 --- a/eel/eel-canvas.h +++ b/eel/eel-canvas.h @@ -530,13 +530,6 @@ extern "C" { void eel_canvas_world_to_window (EelCanvas *canvas, double worldx, double worldy, double *winx, double *winy); - /* Takes a string specification for a color and allocates it into the specified - * GdkColor. If the string is null, then it returns FALSE. Otherwise, it - * returns TRUE. - */ - int eel_canvas_get_color (EelCanvas *canvas, const char *spec, GdkColor *color); - - #ifdef __cplusplus } #endif -- cgit v1.2.1