Remove unused var len

The variable len isn't used anywhere.