[librsvg] Cleanup unused codes.



commit 1654ddfe547ebd3203f8d82a072a11e39175160b
Author: Hiroyuki Ikezoe <hiikezoe gnome org>
Date:   Wed Apr 21 19:08:48 2010 +0900

    Cleanup unused codes.
    
    There is no difinition of RSVGV_RELATIVE.

 rsvg-path.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)
---
diff --git a/rsvg-path.c b/rsvg-path.c
index 7b30bc3..8be9177 100644
--- a/rsvg-path.c
+++ b/rsvg-path.c
@@ -419,7 +419,6 @@ rsvg_path_end_of_number (RSVGParsePathCtx * ctx, double val, int sign, int exp_s
       case 's':
       case 'q':
       case 't':
-#ifndef RSVGV_RELATIVE
 	/* rule: even-numbered params are x-relative, odd-numbered
 	   are y-relative */
 	if ((ctx->param & 1) == 0)
@@ -427,15 +426,6 @@ rsvg_path_end_of_number (RSVGParsePathCtx * ctx, double val, int sign, int exp_s
 	else if ((ctx->param & 1) == 1)
 	  val += ctx->cpy;
 	break;
-#else
-	/* rule: even-numbered params are x-relative, odd-numbered
-	   are y-relative */
-	if (ctx->param == 0 || (ctx->param % 2 == 0))
-	  val += ctx->cpx;
-	else
-	  val += ctx->cpy;
-	break;
-#endif
       case 'a':
 	/* rule: sixth and seventh are x and y, rest are not
 	   relative */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]