diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index e58c934c923fc60350d70b73c7128801174ededd..f8083bc4ec68016f626eb66cfefc879e898f3156 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -281,52 +281,4 @@ def create_some_context(interactive=True): - -# backward compatibility ------------------------------------------------------ -def create_context_from_type(dev_type, properties=None): - from warnings import warn - warn("create_context_from_type is deprecated. Use the Context() constructor instead.", - DeprecationWarning) - return Context(dev_type=dev_type, properties=properties) - -def create_image_2d(context, flags, format, width, height, pitch=0, host_buffer=None): - from warnings import warn - warn("create_image_2d is deprecated. Use the Image() constructor instead.", - DeprecationWarning) - return Image(context, flags, format, (width, height), (pitch,), host_buffer) - -def create_image_3d(context, flags, format, width, height, depth, - row_pitch=0, slice_pitch=0, host_buffer=None): - from warnings import warn - warn("create_image_3d is deprecated. Use the Image() constructor instead.", - DeprecationWarning) - return Image(context, flags, format, (width, height, depth), - (row_pitch, slice_pitch), host_buffer) - -def create_program_with_source(context, source): - from warnings import warn - warn("create_program_with_source is deprecated. Use the Program() constructor instead.", - DeprecationWarning) - - return Program(context, source) - -def create_program_with_binary(context, devices, binaries): - from warnings import warn - warn("create_program_with_binary is deprecated. Use the Program() constructor instead.", - DeprecationWarning) - - return Program(context, devices, binaries) - -def create_buffer(context, flags, size): - from warnings import warn - warn("create_buffer is deprecated. Use the Buffer() constructor instead.", - DeprecationWarning) - - return Buffer(context, flags, size=size) - -def create_host_buffer(context, flags, hostbuf): - from warnings import warn - warn("create_host_buffer is deprecated. Use the Buffer() constructor instead.", - DeprecationWarning) - - return Buffer(context, flags, hostbuf=hostbuf) +# vim: foldmethod=marker