[cffi] remove function copied from pyopencl