Remove unused C code

Removed an unneeded `extern` declaration and two macros that aren't used.