From 221310025841329f840b4aa62edee1f2ada4645c Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 1 Apr 2006 15:25:33 +0000 Subject: [PATCH] * Got rid of the useless cucul_get_fg_color/cucul_get_bg_color functions. --- TODO | 3 --- cucul/canvas.c | 24 ------------------------ cucul/cucul.h | 2 -- 3 files changed, 29 deletions(-) diff --git a/TODO b/TODO index c88df52..cd89cc6 100644 --- a/TODO +++ b/TODO @@ -27,9 +27,6 @@ libcucul number, in case we create several antialiasing methods? Or is it just a waste of time? - o Get rid of cucul_get_fg_color/cucul_get_bg_color, they're really not - useful at all. - API-independent stuff --------------------- diff --git a/cucul/canvas.c b/cucul/canvas.c index 2f27141..8cf9e91 100644 --- a/cucul/canvas.c +++ b/cucul/canvas.c @@ -58,30 +58,6 @@ void cucul_set_color(cucul_t *qq, enum cucul_color fgcolor, qq->bgcolor = bgcolor; } -/** \brief Get the current foreground colour. - * - * This function returns the current foreground colour that was set with - * cucul_set_color(). - * - * \return The current foreground colour. - */ -enum cucul_color cucul_get_fg_color(cucul_t const *qq) -{ - return qq->fgcolor; -} - -/** \brief Get the current background colour. - * - * This function returns the current background colour that was set with - * cucul_set_color(). - * - * \return The current background colour. - */ -enum cucul_color cucul_get_bg_color(cucul_t const *qq) -{ - return qq->bgcolor; -} - /** \brief Print an ASCII character. * * This function prints an ASCII character at the given coordinates, using diff --git a/cucul/cucul.h b/cucul/cucul.h index 6019d06..91fd01d 100644 --- a/cucul/cucul.h +++ b/cucul/cucul.h @@ -78,8 +78,6 @@ void cucul_free(cucul_t *); * * @{ */ void cucul_set_color(cucul_t *, enum cucul_color, enum cucul_color); -enum cucul_color cucul_get_fg_color(cucul_t const *); -enum cucul_color cucul_get_bg_color(cucul_t const *); char const *cucul_get_color_name(enum cucul_color); void cucul_putchar(cucul_t *, int, int, char); void cucul_putstr(cucul_t *, int, int, char const *);