Skip to content

Commit 3a397db

Browse files
author
Jeff Harrell
committed
Removing dead code
1 parent 9b1e98e commit 3a397db

1 file changed

Lines changed: 0 additions & 39 deletions

File tree

src/paypal-button.js

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -379,45 +379,6 @@ PAYPAL.apps = PAYPAL.apps || {};
379379
return form;
380380
}
381381

382-
/**
383-
* Check className exist in element
384-
*/
385-
function hasClass(ele, cls) {
386-
return ele.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)'));
387-
}
388-
389-
/**
390-
* Add className to element
391-
*/
392-
function addClass(ele, cls) {
393-
if (!hasClass(ele, cls)) {
394-
ele.className += ' ' + cls;
395-
}
396-
}
397-
/**
398-
* Remove className from element
399-
*/
400-
function removeClass(ele, cls) {
401-
var regex;
402-
403-
if (hasClass(ele, cls)) {
404-
regex = new RegExp('(\\s|^)' + cls + '(\\s|$)');
405-
ele.className = ele.className.replace(regex, ' ');
406-
}
407-
}
408-
409-
/**
410-
* Display all error message
411-
*/
412-
function displayErrorMsg(errors) {
413-
var errMsg = '<ul>';
414-
415-
for (var i = 0; i < errors.length; i++) {
416-
errMsg += '<li>' + errors[i] + '</li>';
417-
}
418-
419-
return errMsg + '</ul>';
420-
}
421382

422383
/**
423384
* Sort Optional Fields by display order

0 commit comments

Comments
 (0)