gyp: avoid copying items that will be deleted. 

We spent a few CPU seconds copying items we deleted a few lines further 
down. Seems a bit wasteful. This saves around 0.5 real world seconds for 
me. 

BUG=362075
R=mark@chromium.org

Review URL: https://codereview.chromium.org/233503002/
Patch from Daniel Bratell <bratell@opera.com>


git-svn-id: http://gyp.googlecode.com/svn/trunk@1904 78cadc50-ecff-11dd-a971-7dbc132099af
1 file changed