Draft: sdl2: Remove nonfunctional custom ref functions
The functions called by ref_function and unref_function like SDL_surface_up() are never generated in C which causes link errors and vala can't suggest how to solve it (using unowned).
What we can do:
- make ref and unref attributes generate functions and call them
- delete the code to remove bugs
Edited by Hydral Nathan Jordan