Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
EdinaBolkeny committed Jun 30, 2022
1 parent 5e0d92b commit 0b3af01
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 44 deletions.
42 changes: 0 additions & 42 deletions lib/utils/mout.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,46 +33,6 @@ function startsWith (str, prefix) {
return str.indexOf(prefix) === 0;
}

// function setParam (url, paramName, value) {
// url = url || '';
//
// let re = new RegExp('(\\?|&)'+ paramName +'=[^&]*' );
// let param = paramName +'='+ encodeURIComponent( value );
//
// if ( re.test(url) ) {
// return url.replace(re, '$1'+ param);
// } else {
// if (url.indexOf('?') === -1) {
// url += '?';
// }
// if (url.indexOf('=') !== -1) {
// url += '&';
// }
// return url + param;
// }
//
// }
//
// const DEFAULT_DICTIONARY = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
// function randString (length, dictionary) {
// if (!_.isNumber(length) || length <= 0) {
// length = 8;
// }
//
// if (!_.isString(dictionary) || dictionary.length < 1) {
// dictionary = DEFAULT_DICTIONARY;
// }
//
// let result = '';
// const domain = dictionary.length - 1;
//
// while (length--) {
// result += dictionary[_.random(0, domain, false)];
// }
//
// return result;
// }

function replaceAccents (str) {
str = _.toString(str);

Expand Down Expand Up @@ -204,8 +164,6 @@ module.exports = {
randHex,
guid,
startsWith,
// setParam,
// randString,
camelCase,
unCamelCase,
sentenceCase,
Expand Down
2 changes: 0 additions & 2 deletions test/utils/mout_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const {
randHex,
guid,
startsWith,
setParam,
randString,
camelCase,
unCamelCase,
sentenceCase,
Expand Down

0 comments on commit 0b3af01

Please sign in to comment.