Description of problem: - Numerous methods defined in a larger scope than needed. - Methods return a value that is not used. - Code duplication in several methods. - Unused include.
REVIEW: https://review.gluster.org/23852 (Sharding - code cleaning) posted (#1) for review on master by Barak Sason Rofman
This issue should go under https://bugzilla.redhat.com/show_bug.cgi?id=1193929. Closing this.