From 63975dde40e4ee8fd08225741b31d54eff115104 Mon Sep 17 00:00:00 2001 From: Jack Palevich Date: Thu, 28 May 2009 15:34:15 -0700 Subject: [PATCH] Remove versions of scriptCSetScript method that take byte arrays. This makes the API simpler, and therefore probably easier to use. --- .../src/com/android/fountain/RenderScript.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/libs/rs/java/Fountain/src/com/android/fountain/RenderScript.java b/libs/rs/java/Fountain/src/com/android/fountain/RenderScript.java index 16a94cb3a53f3..739f9ae06533e 100644 --- a/libs/rs/java/Fountain/src/com/android/fountain/RenderScript.java +++ b/libs/rs/java/Fountain/src/com/android/fountain/RenderScript.java @@ -614,20 +614,13 @@ public class RenderScript { public void scriptCSetScript(String s) { try { - scriptCSetScript(s.getBytes("UTF-8")); + byte[] bytes = s.getBytes("UTF-8"); + nScriptCSetScript(bytes, 0, bytes.length); } catch (java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); } } - public void scriptCSetScript(byte[] utf8Bytes) { - scriptCSetScript(utf8Bytes, 0, utf8Bytes.length); - } - - public void scriptCSetScript(byte[] utf8Bytes, int offset, int length) { - nScriptCSetScript(utf8Bytes, offset, length); - } - public void scriptCSetScript(Resources resources, int id) { InputStream is = resources.openRawResource(id); try {