summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-06-26 13:17:36 +0200
committerWinnie Hellmann <winnie@gitlab.com>2019-06-26 13:17:36 +0200
commit1081fe3585e556da4dbd0549df1152bc567023e2 (patch)
tree6455410418ae4d8d42f008934f9be62919e9652c
parent5c8c4de7f2b92beddb599dc97bff45da785930ad (diff)
downloadgitlab-ce-winh-delete-notes-service.tar.gz
Delete NotesServicewinh-delete-notes-service
-rw-r--r--app/assets/javascripts/notes/services/notes_service.js8
-rw-r--r--app/assets/javascripts/notes/stores/actions.js1
-rw-r--r--spec/frontend/notes/components/note_app_spec.js1
-rw-r--r--spec/javascripts/notes/stores/actions_spec.js1
4 files changed, 0 insertions, 11 deletions
diff --git a/app/assets/javascripts/notes/services/notes_service.js b/app/assets/javascripts/notes/services/notes_service.js
deleted file mode 100644
index ec0013ab3a5..00000000000
--- a/app/assets/javascripts/notes/services/notes_service.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import Vue from 'vue';
-import Api from '~/api';
-import VueResource from 'vue-resource';
-import * as constants from '../constants';
-
-Vue.use(VueResource);
-
-export default {};
diff --git a/app/assets/javascripts/notes/stores/actions.js b/app/assets/javascripts/notes/stores/actions.js
index aa4ab23ddde..ea4048e63e7 100644
--- a/app/assets/javascripts/notes/stores/actions.js
+++ b/app/assets/javascripts/notes/stores/actions.js
@@ -9,7 +9,6 @@ import Poll from '../../lib/utils/poll';
import * as types from './mutation_types';
import * as utils from './utils';
import * as constants from '../constants';
-import service from '../services/notes_service';
import loadAwardsHandler from '../../awards_handler';
import sidebarTimeTrackingEventHub from '../../sidebar/event_hub';
import { isInViewport, scrollToElement, isInMRPage } from '../../lib/utils/common_utils';
diff --git a/spec/frontend/notes/components/note_app_spec.js b/spec/frontend/notes/components/note_app_spec.js
index ff833d2c899..3a561bfa7b7 100644
--- a/spec/frontend/notes/components/note_app_spec.js
+++ b/spec/frontend/notes/components/note_app_spec.js
@@ -2,7 +2,6 @@ import $ from 'helpers/jquery';
import Vue from 'vue';
import { mount, createLocalVue } from '@vue/test-utils';
import NotesApp from '~/notes/components/notes_app.vue';
-import service from '~/notes/services/notes_service';
import createStore from '~/notes/stores';
import '~/behaviors/markdown/render_gfm';
import { setTestTimeout } from 'helpers/timeout';
diff --git a/spec/javascripts/notes/stores/actions_spec.js b/spec/javascripts/notes/stores/actions_spec.js
index adb6d2af8fe..1dd66067dcf 100644
--- a/spec/javascripts/notes/stores/actions_spec.js
+++ b/spec/javascripts/notes/stores/actions_spec.js
@@ -8,7 +8,6 @@ import * as mutationTypes from '~/notes/stores/mutation_types';
import * as notesConstants from '~/notes/constants';
import createStore from '~/notes/stores';
import mrWidgetEventHub from '~/vue_merge_request_widget/event_hub';
-import service from '~/notes/services/notes_service';
import testAction from '../../helpers/vuex_action_helper';
import axios from '~/lib/utils/axios_utils';
import MockAdapter from 'axios-mock-adapter';