Remove unused path in the v2 token controller
Remove unused path in the v2 token controller

The _get_token_ref() method in keystone.token.controller did some
unnecessary checks and duplicated logic for checking the belongsTo
query parameter. The belongsTo query parameter wasn't possible since
the query parameter was never passed to _get_token_ref().

This commit cleans up the method and consoldiated the logic.

Change-Id: I097b0547b4395b016f80f03d97460ceda49fc8c6

ilay09/keystone,openstack/keystone,rajalokan/keystone,openstack/keystone,openstack/keystone,mahak/keystone,ilay09/keystone,rajalokan/keystone,mahak/keystone,rajalokan/keystone,mahak/keystone,ilay09/keystone