some unused stuff I found while going through clangs static analyzer issues

everything should be just trivial stuff