Remove dead declarations.

Patch by Tobias Güntner.