Removed some unused local variables (PMD reports).

atom2 was only used by the line that has now been removed - I've fixed this up in the commit.