Remove a useless loop that copies an array to itself
Merge pull request #2768 from SpecLad:useless-loop