From 8c8855c9379576e69b156dc3a5392f12421ff11e Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 8 Jul 2013 01:50:26 +0200 Subject: [PATCH] Remove unused lines --- OsmAnd/res/values/strings.xml | 2 -- .../net/osmand/plus/render/RenderingIcons.java | 15 ++++----------- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index b861869346..7fec59cde7 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -770,7 +770,6 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A Uploading … {0} POI/Bugs were uploaded Upload all - Show on map Upload modification to OSM Delete modification @@ -974,7 +973,6 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A Address data Transportation data Map data - Deactivated Voice data (TTS) Voice data (recorded) diff --git a/OsmAnd/src/net/osmand/plus/render/RenderingIcons.java b/OsmAnd/src/net/osmand/plus/render/RenderingIcons.java index a3a0f48d40..9b8b2d3d72 100644 --- a/OsmAnd/src/net/osmand/plus/render/RenderingIcons.java +++ b/OsmAnd/src/net/osmand/plus/render/RenderingIcons.java @@ -43,13 +43,6 @@ public class RenderingIcons { return null; try { -// Bitmap ic = getIcon(ctx, s); -// if(ic == null) { -// return null; -// } -// ByteBuffer buf = ByteBuffer.allocate(ic.getByteCount()); -// ic.copyPixelsToBuffer(buf); -// return buf.array(); final InputStream inputStream = ctx.getResources().openRawResource(resId.intValue()); final ByteArrayOutputStream proxyOutputStream = new ByteArrayOutputStream(1024); final byte[] ioBuffer = new byte[1024]; @@ -60,10 +53,10 @@ public class RenderingIcons { inputStream.close(); final byte[] bitmapData = proxyOutputStream.toByteArray(); log.info("Icon data length is " + bitmapData.length); //$NON-NLS-1$ - Bitmap dm = android.graphics.BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length) ; - if(dm != null){ - System.out.println("IC " + s +" " + dm.getHeight() + "x" + dm.getWidth()); - } +// Bitmap dm = android.graphics.BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length) ; +// if(dm != null){ +// System.out.println("IC " + s +" " + dm.getHeight() + "x" + dm.getWidth()); +// } //if(android.graphics.BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length) == null) // throw new Exception(); return bitmapData;