Remove unnecessary 'length' variable.