Remove unused lines
This commit is contained in:
parent
2d8fe2ac7e
commit
8c8855c937
2 changed files with 4 additions and 13 deletions
|
@ -770,7 +770,6 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A
|
||||||
<string name="local_openstreetmap_uploading">Uploading …</string>
|
<string name="local_openstreetmap_uploading">Uploading …</string>
|
||||||
<string name="local_openstreetmap_were_uploaded">{0} POI/Bugs were uploaded</string>
|
<string name="local_openstreetmap_were_uploaded">{0} POI/Bugs were uploaded</string>
|
||||||
<string name="local_openstreetmap_uploadall">Upload all</string>
|
<string name="local_openstreetmap_uploadall">Upload all</string>
|
||||||
<string name="local_openstreetmap_items"></string>
|
|
||||||
<string name="local_openstreetmap_show">Show on map</string>
|
<string name="local_openstreetmap_show">Show on map</string>
|
||||||
<string name="local_openstreetmap_upload">Upload modification to OSM</string>
|
<string name="local_openstreetmap_upload">Upload modification to OSM</string>
|
||||||
<string name="local_openstreetmap_delete">Delete modification</string>
|
<string name="local_openstreetmap_delete">Delete modification</string>
|
||||||
|
@ -974,7 +973,6 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A
|
||||||
<string name="local_index_address_data">Address data</string>
|
<string name="local_index_address_data">Address data</string>
|
||||||
<string name="local_index_transport_data">Transportation data</string>
|
<string name="local_index_transport_data">Transportation data</string>
|
||||||
<string name="local_index_map_data">Map data</string>
|
<string name="local_index_map_data">Map data</string>
|
||||||
<string name="local_index_items"></string>
|
|
||||||
<string name="local_indexes_cat_backup">Deactivated</string>
|
<string name="local_indexes_cat_backup">Deactivated</string>
|
||||||
<string name="local_indexes_cat_tts">Voice data (TTS)</string>
|
<string name="local_indexes_cat_tts">Voice data (TTS)</string>
|
||||||
<string name="local_indexes_cat_voice">Voice data (recorded)</string>
|
<string name="local_indexes_cat_voice">Voice data (recorded)</string>
|
||||||
|
|
|
@ -43,13 +43,6 @@ public class RenderingIcons {
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
try {
|
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 InputStream inputStream = ctx.getResources().openRawResource(resId.intValue());
|
||||||
final ByteArrayOutputStream proxyOutputStream = new ByteArrayOutputStream(1024);
|
final ByteArrayOutputStream proxyOutputStream = new ByteArrayOutputStream(1024);
|
||||||
final byte[] ioBuffer = new byte[1024];
|
final byte[] ioBuffer = new byte[1024];
|
||||||
|
@ -60,10 +53,10 @@ public class RenderingIcons {
|
||||||
inputStream.close();
|
inputStream.close();
|
||||||
final byte[] bitmapData = proxyOutputStream.toByteArray();
|
final byte[] bitmapData = proxyOutputStream.toByteArray();
|
||||||
log.info("Icon data length is " + bitmapData.length); //$NON-NLS-1$
|
log.info("Icon data length is " + bitmapData.length); //$NON-NLS-1$
|
||||||
Bitmap dm = android.graphics.BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length) ;
|
// Bitmap dm = android.graphics.BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length) ;
|
||||||
if(dm != null){
|
// if(dm != null){
|
||||||
System.out.println("IC " + s +" " + dm.getHeight() + "x" + dm.getWidth());
|
// System.out.println("IC " + s +" " + dm.getHeight() + "x" + dm.getWidth());
|
||||||
}
|
// }
|
||||||
//if(android.graphics.BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length) == null)
|
//if(android.graphics.BitmapFactory.decodeByteArray(bitmapData, 0, bitmapData.length) == null)
|
||||||
// throw new Exception();
|
// throw new Exception();
|
||||||
return bitmapData;
|
return bitmapData;
|
||||||
|
|
Loading…
Reference in a new issue