daemon: Remove unused function in cgroup code

This seemed to start causing problems with Travis CI.

Closes #511
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>