util: Kill off rtrim() helper.

I am 99% sure we can rely on trimRight() and
trim() being available in all browsers that
we support.  I verified in FF.

This removes the util dependency from both
modules touched here.
This commit is contained in:
Steve Howell
2020-02-14 14:04:25 +00:00
committed by Tim Abbott
parent 9ab07d1038
commit c9a52411ae
4 changed files with 2 additions and 14 deletions

View File

@@ -131,10 +131,6 @@ exports.robust_uri_decode = function (str) {
return '';
};
exports.rtrim = function (str) {
return str.replace(/\s+$/, '');
};
// If we can, use a locale-aware sorter. However, if the browser
// doesn't support the ECMAScript Internationalization API
// Specification, do a dumb string comparison because