Remove method declarations without definitions.