More RS exceptions cleanup.

Remove some dead code.

Change-Id: If97e3fdfe6de7bb28f22e1c5ee748c81cea3db93
This commit is contained in:
Jason Sams
2010-11-04 14:32:19 -07:00
parent cebfaab7a5
commit c1d6210fb5
7 changed files with 51 additions and 69 deletions

View File

@@ -156,10 +156,6 @@ public class RenderScript {
synchronized void nObjDestroy(int id) {
rsnObjDestroy(mContext, id);
}
native int rsnFileOpen(int con, byte[] name);
synchronized int nFileOpen(byte[] name) {
return rsnFileOpen(mContext, name);
}
native int rsnElementCreate(int con, int type, int kind, boolean norm, int vecSize);
synchronized int nElementCreate(int type, int kind, boolean norm, int vecSize) {
@@ -599,7 +595,7 @@ public class RenderScript {
void validate() {
if (mContext == 0) {
throw new IllegalStateException("Calling RS with no Context active.");
throw new RSInvalidStateException("Calling RS with no Context active.");
}
}