Remove the code which may be unused and make the code compilable.