Why to solve this error?

That is strange, the error should not be there if the code is not used. Have you compiled the source code after it was deleted?