remove (comment out) old code to fix replacing of files

Fix replacing files by removing old code

please review @DeepDiver1975 @butonic