From d8bd57901e33a7057e26e782e295099ffcc0da89 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Wed, 6 Sep 2017 23:04:13 -0700
Subject: Removing webapp

---
 webapp/actions/job_actions.jsx | 34 ----------------------------------
 1 file changed, 34 deletions(-)
 delete mode 100644 webapp/actions/job_actions.jsx

(limited to 'webapp/actions/job_actions.jsx')

diff --git a/webapp/actions/job_actions.jsx b/webapp/actions/job_actions.jsx
deleted file mode 100644
index 75d70faec..000000000
--- a/webapp/actions/job_actions.jsx
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-import * as JobsActions from 'mattermost-redux/actions/jobs';
-
-import store from 'stores/redux_store.jsx';
-const dispatch = store.dispatch;
-const getState = store.getState;
-
-export function createJob(job, success, error) {
-    JobsActions.createJob(job)(dispatch, getState).then(
-        (data) => {
-            if (data && success) {
-                success(data);
-            } else if (data == null && error) {
-                const serverError = getState().requests.jobs.createJob.error;
-                error({id: serverError.server_error_id, ...serverError});
-            }
-        }
-    );
-}
-
-export function cancelJob(jobId, success, error) {
-    JobsActions.cancelJob(jobId)(dispatch, getState).then(
-        (data) => {
-            if (data && success) {
-                success(data);
-            } else if (data == null && error) {
-                const serverError = getState().requests.jobs.cancelJob.error;
-                error({id: serverError.server_error_id, ...serverError});
-            }
-        }
-    );
-}
-- 
cgit v1.2.3-1-g7c22

