Cleanup static function declarations

This avoids warnings about unused functions if building in a configuration with extra warnings enabled.

It never makes sense to add a declaration of a static function in a header (that is, a pure function prototype) - the only case it makes sense if it's a full inline static function.