Remove or prepend underscore _ to unused method arguments

- remove `up_dir_path tree` which can be removed
- add underscore Devise callbacks to silence Hound in those cases where it cannot be omitted as mentioned at: https://github.com/gitlabhq/gitlabhq/pull/7858#discussion-diff-18063612
Use def with parentheses when there are parameters.