Skip to content

Commit a1a0f9f

Browse files
committed
Removing android dependencies from Java Array and Util classes
1 parent f7ff758 commit a1a0f9f

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/com/arrayfire/Array.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.arrayfire;
22

3-
import android.util.Log;
4-
53
public class Array implements AutoCloseable {
64

75
static {
@@ -100,7 +98,6 @@ public Array(int[] dims, float[] elems) throws Exception {
10098
if( elems.length > total_size || elems.length < total_size ) {
10199
throw new Exception("Mismatching dims and array size");
102100
}
103-
Log.i("Array", "============ Array class =============== ");
104101
this.ref = createArrayElems(dims,elems);
105102
}
106103

src/com/arrayfire/Util.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package com.arrayfire;
22

3-
import android.util.Log;
4-
53
public class Util {
64

75
public static String toString(Array a, String delim) {
@@ -14,8 +12,7 @@ public static String toString(Array a, String delim) {
1412
}
1513
ret_txt += Float.toString( fary[fary.length-1] );
1614
} catch(Exception e) {
17-
Log.i("Util.toString","Array to String conversion failed");
18-
ret_txt="";
15+
ret_txt="Failed to convert to string";
1916
}
2017
return ret_txt;
2118
}

0 commit comments

Comments
 (0)