Remove warning of assigned but unused variable