Navigation Menu

Skip to content

Commit

Permalink
Finish removal of getitem wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Nov 19, 2015
1 parent 00f8fda commit fcbf5c3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/c_wrapper/buffer.cpp
Expand Up @@ -23,6 +23,7 @@ buffer::get_sub_region(size_t orig, size_t size, cl_mem_flags flags) const
});
return new_buffer(mem);
}

#endif

// c wrapper
Expand Down Expand Up @@ -216,13 +217,4 @@ buffer__get_sub_region(clobj_t *_sub_buf, clobj_t _buf, size_t orig,
});
}

error*
buffer__getitem(clobj_t *_ret, clobj_t _buf, ssize_t start, ssize_t end)
{
auto buf = static_cast<buffer*>(_buf);
return c_handle_error([&] {
*_ret = buf->getitem(start, end);
});
}

#endif

0 comments on commit fcbf5c3

Please sign in to comment.