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:
@@ -47,14 +47,6 @@ public class Allocation extends BaseObj {
|
||||
mRS.nAllocationUploadToTexture(mID, baseMipLevel);
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
if(mDestroyed) {
|
||||
throw new IllegalStateException("Object already destroyed.");
|
||||
}
|
||||
mDestroyed = true;
|
||||
mRS.nAllocationDestroy(mID);
|
||||
}
|
||||
|
||||
public void data(int[] d) {
|
||||
mRS.nAllocationData(mID, d);
|
||||
}
|
||||
@@ -98,11 +90,6 @@ public class Allocation extends BaseObj {
|
||||
mID = id;
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
mRS.nAdapter1DDestroy(mID);
|
||||
mID = 0;
|
||||
}
|
||||
|
||||
public void setConstraint(Dimension dim, int value) {
|
||||
mRS.nAdapter1DSetConstraint(mID, dim.mID, value);
|
||||
}
|
||||
@@ -139,11 +126,6 @@ public class Allocation extends BaseObj {
|
||||
mID = id;
|
||||
}
|
||||
|
||||
public void destroy() {
|
||||
mRS.nAdapter2DDestroy(mID);
|
||||
mID = 0;
|
||||
}
|
||||
|
||||
public void setConstraint(Dimension dim, int value) {
|
||||
mRS.nAdapter2DSetConstraint(mID, dim.mID, value);
|
||||
}
|
||||
@@ -251,7 +233,7 @@ public class Allocation extends BaseObj {
|
||||
Allocation alloc = createTyped(rs, t);
|
||||
t.destroy();
|
||||
return alloc;
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user