From 8fc4456213c5ee16863b7f1bcb20e35a19469a1d Mon Sep 17 00:00:00 2001
From: hmhealey <harrisonmhealey@gmail.com>
Date: Thu, 13 Aug 2015 13:23:56 -0400
Subject: Removed isEmailEnabledSynchronous and switched the email disabled
 warnings to use ConfigStore

---
 web/react/utils/client.jsx | 21 ---------------------
 1 file changed, 21 deletions(-)

(limited to 'web/react/utils/client.jsx')

diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index 250e3edbd..8178ab01a 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -864,24 +864,3 @@ function getConfig(success, error) {
     });
 };
 module.exports.getConfig = getConfig;
-
-module.exports.isEmailEnabledSynchronous = function() {
-    var enabled = false;
-
-    $.ajax({
-        async: false,
-        url: '/api/v1/config/get/bypass_email',
-        dataType: 'json',
-        type: 'GET',
-        success: function(value) {
-            enabled = !value;
-        },
-        error: function(xhr, status, err) {
-            if (status !== '200') {
-                handleError('isEmailEnabled', xhr, status, err);
-            }
-        }
-    });
-
-    return enabled;
-};
-- 
cgit v1.2.3-1-g7c22

