From 19628a60a133ecb1421ae2b0ac09ec9791239c8f Mon Sep 17 00:00:00 2001 From: kitfox Date: Sat, 9 Mar 2013 15:51:42 +0000 Subject: Error handling now sends warnings to Logger. git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@149 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b --- src/main/java/com/kitfox/svg/Use.java | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'src/main/java/com/kitfox/svg/Use.java') diff --git a/src/main/java/com/kitfox/svg/Use.java b/src/main/java/com/kitfox/svg/Use.java index 1459028..f323154 100644 --- a/src/main/java/com/kitfox/svg/Use.java +++ b/src/main/java/com/kitfox/svg/Use.java @@ -62,42 +62,7 @@ public class Use extends ShapeElement { /** Creates a new instance of LinearGradient */ public Use() { } -/* - public void loaderStartElement(SVGLoaderHelper helper, Attributes attrs, SVGElement parent) - { - //Load style string - super.loaderStartElement(helper, attrs, parent); - - String x = attrs.getValue("x"); - String y = attrs.getValue("y"); - String width = attrs.getValue("width"); - String height = attrs.getValue("height"); - String href = attrs.getValue("xlink:href"); - - if (x != null) this.x = (float)XMLParseUtil.parseRatio(x); - if (y != null) this.y = (float)XMLParseUtil.parseRatio(y); - if (width != null) this.width = (float)XMLParseUtil.parseRatio(width); - if (height != null) this.height = (float)XMLParseUtil.parseRatio(height); - - - if (href != null) - { - try { - URI src = getXMLBase().resolve(href); - this.href = helper.universe.getElement(src); - } - catch (Exception e) - { - e.printStackTrace(); - } - } - //Determine use offset/scale - refXform = new AffineTransform(); - refXform.translate(this.x, this.y); - refXform.scale(this.width, this.height); - } -*/ protected void build() throws SVGException { super.build(); -- cgit v1.2.3-55-g7522