From f92d25a1b18e4837e90bba71732ca2a0d74e0768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Fri, 2 May 2014 19:17:27 +0200 Subject: [PATCH] unused code removed --- .../morphshape/CanvasMorphShapeExporter.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java b/trunk/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java index b1fe0f59d..df876416c 100644 --- a/trunk/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java +++ b/trunk/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java @@ -223,21 +223,7 @@ public class CanvasMorphShapeExporter extends MorphShapeExporterBase { if (image != null) { SerializableImage img = image.getImage(); if (img != null) { - colorTransform.apply(img); - String format = image.getImageFormat(); - InputStream imageStream = image.getImageData(); - byte[] imageData; - if (imageStream != null) { - imageData = Helper.readStream(image.getImageData()); - } else { - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - try { - ImageIO.write(img.getBufferedImage(), format.toUpperCase(Locale.ENGLISH), baos); - } catch (IOException ex) { - } - imageData = baos.toByteArray(); - } - //String base64ImgData = DatatypeConverter.printBase64Binary(imageData); + colorTransform.apply(img); if (matrix != null) { fillMatrix = matrix.clone(); fillMatrix.translateX /= unitDivisor;