Remove useless utils_invert_color()

This commit is contained in:
Colomban Wendling 2013-12-04 15:46:05 +01:00
parent 8980970630
commit 4ce6409e89
3 changed files with 1 additions and 15 deletions

View File

@ -391,7 +391,7 @@ static void get_keyfile_ints(GKeyFile *config, GKeyFile *configh, const gchar *s
static guint invert(guint icolour) static guint invert(guint icolour)
{ {
if (interface_prefs.highlighting_invert_all) if (interface_prefs.highlighting_invert_all)
return utils_invert_color(icolour); return 0xffffff - icolour;
return icolour; return icolour;
} }

View File

@ -872,18 +872,6 @@ gchar *utils_get_hex_from_color(GdkColor *color)
} }
guint utils_invert_color(guint color)
{
guint r, g, b;
r = 0xffffff - color;
g = 0xffffff - (color >> 8);
b = 0xffffff - (color >> 16);
return (r | (g << 8) | (b << 16));
}
/* Get directory from current file in the notebook. /* Get directory from current file in the notebook.
* Returns dir string that should be freed or NULL, depending on whether current file is valid. * Returns dir string that should be freed or NULL, depending on whether current file is valid.
* Returned string is in UTF-8 encoding */ * Returned string is in UTF-8 encoding */

View File

@ -209,8 +209,6 @@ gchar *utils_get_setting_string(GKeyFile *config, const gchar *section, const gc
gchar *utils_get_hex_from_color(GdkColor *color); gchar *utils_get_hex_from_color(GdkColor *color);
guint utils_invert_color(guint color);
const gchar *utils_get_default_dir_utf8(void); const gchar *utils_get_default_dir_utf8(void);
gchar *utils_get_current_file_dir_utf8(void); gchar *utils_get_current_file_dir_utf8(void);