src,headers: Remove dead code to prevent compilation warnings

This patch gets `make` to shutup on Linux.