daemon: Remove unused function in cgroup code

This seemed to start causing problems with Travis CI.