]> granicus.if.org Git - graphviz/commitdiff
remove dead code and variables
authorellson <devnull@localhost>
Fri, 3 Mar 2006 15:51:34 +0000 (15:51 +0000)
committerellson <devnull@localhost>
Fri, 3 Mar 2006 15:51:34 +0000 (15:51 +0000)
lib/common/svggen.c

index b5f8262fe4def2a68fa3d36c0e07f939d0c0e2f0..5a0c6444a0d0e0e3393946ddfd681b23f7e1ca68 100644 (file)
@@ -118,7 +118,6 @@ static pointf CompScale;
 static pointf Offset;
 
 static point Viewport;
-static pointf GraphFocus;
 
 static node_t *Curnode;
 
@@ -204,19 +203,11 @@ static point svgpt(point p)
     point rv;
 
     if (Rot) {
-#if 0
-        rv.x = ROUND(-(p.y - GraphFocus.y) * CompScale.x + Viewport.x / 2.);
-        rv.y = ROUND( (p.x - GraphFocus.x) * CompScale.y + Viewport.y / 2.);
-    } else {
-        rv.x = ROUND( (p.x - GraphFocus.x) * CompScale.x + Viewport.x / 2.);
-        rv.y = ROUND( (p.y - GraphFocus.y) * CompScale.y + Viewport.y / 2.);
-#else
         rv.x = ROUND(-p.y * CompScale.x + Offset.x);
         rv.y = ROUND( p.x * CompScale.y + Offset.y);
     } else {
         rv.x = ROUND( p.x * CompScale.x + Offset.x);
         rv.y = ROUND( p.y * CompScale.y + Offset.y);
-#endif
     }
     return rv;
 }
@@ -487,7 +478,6 @@ static void svg_begin_graph(GVC_t * gvc, graph_t * g, box bb, point pb)
 {
     Viewport.x = gvc->job->width;
     Viewport.y = gvc->job->height;
-    GraphFocus = gvc->job->focus;
     CompScale = gvc->job->compscale;
     Offset = gvc->job->offset;