Remove unused variables

Remove unused variables and suppress warnings by gcc 4.9.
Remove unused variable

Remove unused variable, enc_index is no longer used since f9005a20.
Merge branch 'master' into nobu-unused-variables

* master:
  Use rb_integer_pack
  Bignum to int64 conversion