make hashmap methods optional to use

Closes #277.
remove unused hashmap declaration
remove unused functions
Merge pull request #280 from satta/unused_hashmap

Unused functions