Skip to content

Commit 487bd0a

Browse files
author
Chris Ferdinandi
committed
Removed unused trim method
1 parent 0cf9eb6 commit 487bd0a

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

dist/js/smooth-scroll.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,6 @@
138138
);
139139
};
140140

141-
/**
142-
* Remove whitespace from a string
143-
* @private
144-
* @param {String} string
145-
* @returns {String}
146-
*/
147-
var trim = function ( string ) {
148-
return string.replace(/^\s+|\s+$/g, '');
149-
};
150-
151141
/**
152142
* Convert data-options attribute into an object of key/value pairs
153143
* @private

src/js/smooth-scroll.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,6 @@
129129
);
130130
};
131131

132-
/**
133-
* Remove whitespace from a string
134-
* @private
135-
* @param {String} string
136-
* @returns {String}
137-
*/
138-
var trim = function ( string ) {
139-
return string.replace(/^\s+|\s+$/g, '');
140-
};
141-
142132
/**
143133
* Convert data-options attribute into an object of key/value pairs
144134
* @private

0 commit comments

Comments
 (0)