[geany/geany] 4ce640: Remove useless utils_invert_color()

Colomban Wendling git-noreply at xxxxx
Wed Dec 4 14:46:05 UTC 2013


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Wed, 04 Dec 2013 14:46:05 UTC
Commit:      4ce6409e898b3b7d9b63f98b8e4017a138533dde
             https://github.com/geany/geany/commit/4ce6409e898b3b7d9b63f98b8e4017a138533dde

Log Message:
-----------
Remove useless utils_invert_color()


Modified Paths:
--------------
    src/highlighting.c
    src/utils.c
    src/utils.h

Modified: src/highlighting.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -391,7 +391,7 @@ static void get_keyfile_ints(GKeyFile *config, GKeyFile *configh, const gchar *s
 static guint invert(guint icolour)
 {
 	if (interface_prefs.highlighting_invert_all)
-		return utils_invert_color(icolour);
+		return 0xffffff - icolour;
 
 	return icolour;
 }


Modified: src/utils.c
12 files changed, 0 insertions(+), 12 deletions(-)
===================================================================
@@ -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.
  * Returns dir string that should be freed or NULL, depending on whether current file is valid.
  * Returned string is in UTF-8 encoding */


Modified: src/utils.h
2 files changed, 0 insertions(+), 2 deletions(-)
===================================================================
@@ -209,8 +209,6 @@ guint utils_string_regex_replace_all(GString *haystack, GRegex *regex,
 
 gchar *utils_get_hex_from_color(GdkColor *color);
 
-guint utils_invert_color(guint color);
-
 const gchar *utils_get_default_dir_utf8(void);
 
 gchar *utils_get_current_file_dir_utf8(void);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list