Remove dead functions from the renderer