chaindb: Removing dead code