remove some unused declarations

Fixes #1546