From 710dc716d0eff8d70f3c52fca85d5f37977418df Mon Sep 17 00:00:00 2001 From: Jhen Date: Thu, 7 Sep 2023 08:54:33 +0800 Subject: [PATCH] chore(android): cleanup unnecessary method --- .../src/main/java/com/rnllama/LlamaContext.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/android/src/main/java/com/rnllama/LlamaContext.java b/android/src/main/java/com/rnllama/LlamaContext.java index 2fa9ffa..8448b0f 100644 --- a/android/src/main/java/com/rnllama/LlamaContext.java +++ b/android/src/main/java/com/rnllama/LlamaContext.java @@ -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,