[RFC v2 3/3] tuna: Remove unused functions and globals