core: Remove unused check for funopen/fopencookie.