Skip to content

Commit 7fa9243

Browse files
committed
Lib: Remove unused promiseError method
1 parent 71998dd commit 7fa9243

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Diff for: src/lib/index.js

-11
Original file line numberDiff line numberDiff line change
@@ -256,17 +256,6 @@ lib.smooth = function(arrayIn, FWHM) {
256256
return arrayOut;
257257
};
258258

259-
// helpers for promises
260-
261-
/**
262-
* promiseError: log errors properly inside promises
263-
* use:
264-
* <promise>.then(undefined,Plotly.Lib.promiseError) (for IE compatibility)
265-
* or <promise>.catch(Plotly.Lib.promiseError)
266-
* TODO: I guess we need another step to send this error to Sentry?
267-
*/
268-
lib.promiseError = function(err) { console.log(err, err.stack); };
269-
270259
/**
271260
* syncOrAsync: run a sequence of functions synchronously
272261
* as long as its returns are not promises (ie have no .then)

0 commit comments

Comments
 (0)