From 2e3b294fd3be4c9e6c328dd404a2f561b8dde2bc Mon Sep 17 00:00:00 2001 From: Ian Storm Taylor Date: Wed, 3 May 2017 18:33:05 -0700 Subject: [PATCH] remove warn throwing since console.warn includes callsites now --- src/utils/warn.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/utils/warn.js b/src/utils/warn.js index ae6125907..2a1d89a44 100644 --- a/src/utils/warn.js +++ b/src/utils/warn.js @@ -16,15 +16,6 @@ function warn(message, ...args) { if (typeof console !== 'undefined') { console.warn(`Warning: ${message}`, ...args) // eslint-disable-line no-console } - - try { - // --- Welcome to debugging Slate! --- - // This error was thrown as a convenience so that you can use this stack - // to find the callsite that caused this warning to fire. - throw new Error(message) - } catch (x) { - // This error is only for debugging. - } } /**