diff options
Diffstat (limited to 'src/com/jogamp/opencl/CLObject.java')
-rw-r--r-- | src/com/jogamp/opencl/CLObject.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/com/jogamp/opencl/CLObject.java b/src/com/jogamp/opencl/CLObject.java index 3273c4db..58a6333c 100644 --- a/src/com/jogamp/opencl/CLObject.java +++ b/src/com/jogamp/opencl/CLObject.java @@ -28,13 +28,12 @@ package com.jogamp.opencl; -import com.jogamp.common.AutoCloseable; /** * Common superclass for all OpenCL objects. * @author Michael Bien */ -abstract class CLObject implements AutoCloseable { +public abstract class CLObject { /** * The OpenCL object handle. @@ -54,20 +53,6 @@ abstract class CLObject implements AutoCloseable { } /** - * Implementation detail. - * TODO remove as soon we have extension methods. - * @deprecated This method is not intended to be called from client code. - * @see java.lang.AutoCloseable - */ - @Deprecated - @Override - public final void close() { - if(this instanceof CLResource) { - ((CLResource)this).release(); - } - } - - /** * Returns the context for this OpenCL object. */ public CLContext getContext() { |