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 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'eel/eel-canvas.c') 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, -- cgit v1.2.1