Skip to content

Commit 32965d9

Browse files
committed
TraceKit.wrap isn't used or needed
1 parent ed4294c commit 32965d9

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

vendor/TraceKit/tracekit.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,6 @@ var TraceKit = {
1515
var _slice = [].slice;
1616
var UNKNOWN_FUNCTION = '?';
1717

18-
/**
19-
* TraceKit.wrap: Wrap any function in a TraceKit reporter
20-
* Example: func = TraceKit.wrap(func);
21-
*
22-
* @param {Function} func Function to be wrapped
23-
* @return {Function} The wrapped func
24-
*/
25-
TraceKit.wrap = function traceKitWrapper(func) {
26-
function wrapped() {
27-
try {
28-
return func.apply(this, arguments);
29-
} catch (e) {
30-
TraceKit.report(e);
31-
throw e;
32-
}
33-
}
34-
return wrapped;
35-
};
3618

3719
function getLocationHref() {
3820
if (typeof document === 'undefined')

0 commit comments

Comments
 (0)