diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-04-27 17:37:40 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-27 17:37:40 +0300 |
commit | de489f972c1cbff487900be904c3c83700088b50 (patch) | |
tree | fce58f708a01974080aabb115fb0ad79a11de2ea /app/assets/javascripts/pipelines/stores | |
parent | 6ae76738dde8fecb117f7706ae2ef74c1d83cdb7 (diff) |
Remove unused code
Diffstat (limited to 'app/assets/javascripts/pipelines/stores')
-rw-r--r-- | app/assets/javascripts/pipelines/stores/pipelines_store.js | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/app/assets/javascripts/pipelines/stores/pipelines_store.js b/app/assets/javascripts/pipelines/stores/pipelines_store.js index 377ec8ba2cc..ffefe0192f2 100644 --- a/app/assets/javascripts/pipelines/stores/pipelines_store.js +++ b/app/assets/javascripts/pipelines/stores/pipelines_store.js @@ -1,6 +1,3 @@ -/* eslint-disable no-underscore-dangle*/ -import VueRealtimeListener from '../../vue_realtime_listener'; - export default class PipelinesStore { constructor() { this.state = {}; @@ -30,32 +27,4 @@ export default class PipelinesStore { this.state.pageInfo = paginationInfo; } - - /** - * FIXME: Move this inside the component. - * - * Once the data is received we will start the time ago loops. - * - * Everytime a request is made like retry or cancel a pipeline, every 10 seconds we - * update the time to show how long as passed. - * - */ - startTimeAgoLoops() { - const startTimeLoops = () => { - this.timeLoopInterval = setInterval(() => { - this.$children[0].$children.reduce((acc, component) => { - const timeAgoComponent = component.$children.filter(el => el.$options._componentTag === 'time-ago')[0]; - acc.push(timeAgoComponent); - return acc; - }, []).forEach(e => e.changeTime()); - }, 10000); - }; - - startTimeLoops(); - - const removeIntervals = () => clearInterval(this.timeLoopInterval); - const startIntervals = () => startTimeLoops(); - - VueRealtimeListener(removeIntervals, startIntervals); - } } |