Cleanup of object destruction. No need to have a per-class destruction function. This was a legacy of the distant past when the classes did not have a common base.
This commit is contained in:
@@ -138,11 +138,7 @@ public class Element extends BaseObj {
|
||||
if(mIsPredefined) {
|
||||
throw new IllegalStateException("Attempting to destroy a predefined Element.");
|
||||
}
|
||||
if(mDestroyed) {
|
||||
throw new IllegalStateException("Object already destroyed.");
|
||||
}
|
||||
mDestroyed = true;
|
||||
mRS.nElementDestroy(mID);
|
||||
super.destroy();
|
||||
}
|
||||
|
||||
public static Element createFromClass(RenderScript rs, Class c) {
|
||||
|
||||
Reference in New Issue
Block a user