fixed #3480 remove unused ret.