Remove unused variables and duplicate character classes

The check that was based on dep_spec has been removed in
c24bdad8abac23423d73488d8a6e00b63f959f0a

From http://www.ruby-doc.org/core-2.1.2/Regexp.html:
/\w/ - A word character ([a-zA-Z0-9_])
This includes \d