Trim unused C functions, comment out show() calls in tests