Problems merging 2 codes (blinking light and dfplayer)

It's nothing to do with the line you removed - the same problem exists in your previous version.

The compiler is essentially saying that you have two declarations of something called led1 and if you run your eye over the first few lines of your program, you'll see that you do.