[core] Removes unused getting of Constant
Merge pull request #1885 from fog/cleanup_cc69d10c

[core] Removes unused getting of Constant