bug 676: cleanup on maxloc. comments, remove redundant code