summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-04-10 12:55:55 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2013-04-10 12:55:55 (GMT)
commitcf64be5bf3e7d5062d8e0d0ccf76aebfc54ec1b3 (patch)
tree18866013f358c0d49f0632efb4b256501ac5d381
parentc9b04ac6aef4807365e2c632849a419c8df9961f (diff)
downloadlibnsfb-cf64be5bf3e7d5062d8e0d0ccf76aebfc54ec1b3.tar.gz
libnsfb-cf64be5bf3e7d5062d8e0d0ccf76aebfc54ec1b3.tar.bz2
Remove dead store.
-rw-r--r--include/palette.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/palette.h b/include/palette.h
index f975ef2..b48d5f3 100644
--- a/include/palette.h
+++ b/include/palette.h
@@ -97,7 +97,6 @@ static inline uint8_t nsfb_palette_best_match(struct nsfb_palette_s *palette,
db = ((c >> 16) & 0xFF) - ((palent >> 16) & 0xFF);
cur_distance = (dr * dr) + (dg * dg) + (db * db);
if (cur_distance < best_distance) {
- best_distance = cur_distance;
best_col = col;
*r_error = dr;
*g_error = dg;