Removed obsolete function which did trigger a jshint error.