Remove unused function

Fix #805

Need to use `grunt dist --platforms=all`