[gimp] libgimpconfig: remove negative value handling from gimp_scanner_parse_color()
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] libgimpconfig: remove negative value handling from gimp_scanner_parse_color()
- Date: Sat, 27 May 2017 20:41:03 +0000 (UTC)
commit f16ba7d1a7ce45403aec5c95fe449b5e4d5053f2
Author: Ell <ell_se yahoo com>
Date: Sat May 27 16:35:51 2017 -0400
libgimpconfig: remove negative value handling from gimp_scanner_parse_color()
Handled internally by gimp_scanner_parse_float(), since last commit.
libgimpconfig/gimpscanner.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/libgimpconfig/gimpscanner.c b/libgimpconfig/gimpscanner.c
index 490a76a..740a458 100644
--- a/libgimpconfig/gimpscanner.c
+++ b/libgimpconfig/gimpscanner.c
@@ -704,19 +704,8 @@ gimp_scanner_parse_color (GScanner *scanner,
for (i = 0; i < n_channels; i++)
{
- gboolean negate = FALSE;
-
- if (g_scanner_peek_next_token (scanner) == '-')
- {
- negate = TRUE;
- g_scanner_get_next_token (scanner);
- }
-
if (! gimp_scanner_parse_float (scanner, &col[i]))
goto finish;
-
- if (negate)
- col[i] = - col[i];
}
if (is_hsv)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]