Skip to content

Commit

Permalink
chore(android): cleanup unnecessary method
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Sep 7, 2023
1 parent f61e18c commit 710dc71
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions android/src/main/java/com/rnllama/LlamaContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,23 +210,6 @@ private static boolean isX86_64() {
return Build.SUPPORTED_ABIS[0].equals("x86_64");
}

private static String cpuInfo() {
File file = new File("/proc/cpuinfo");
StringBuilder stringBuilder = new StringBuilder();
try {
BufferedReader bufferedReader = new BufferedReader(new FileReader(file));
String line;
while ((line = bufferedReader.readLine()) != null) {
stringBuilder.append(line);
}
bufferedReader.close();
return stringBuilder.toString();
} catch (IOException e) {
Log.w(NAME, "Couldn't read /proc/cpuinfo", e);
return null;
}
}

protected static native long initContext(
String model,
boolean embedding,
Expand Down

0 comments on commit 710dc71

Please sign in to comment.