removed unused variable in range_beg_len
Merge pull request #2535 from kkkkkt/remove-unused-variable

removed unused variable in range_beg_len