@@ -6,11 +6,6 @@ import { formatIssue } from '../boards_util';
66import { issuableTypes } from '../constants' ;
77import * as mutationTypes from './mutation_types' ;
88
9- const notImplemented = ( ) => {
10- /* eslint-disable-next-line @gitlab/require-i18n-strings */
11- throw new Error ( 'Not implemented!' ) ;
12- } ;
13-
149const updateListItemsCount = ( { state, listId, value } ) => {
1510 const list = state . boardLists [ listId ] ;
1611 if ( state . issuableType === issuableTypes . epic ) {
@@ -94,18 +89,10 @@ export default {
9489 state . error = s__ ( 'Boards|An error occurred while generating lists. Please reload the page.' ) ;
9590 } ,
9691
97- [ mutationTypes . REQUEST_ADD_LIST ] : ( ) => {
98- notImplemented ( ) ;
99- } ,
100-
10192 [ mutationTypes . RECEIVE_ADD_LIST_SUCCESS ] : ( state , list ) => {
10293 Vue . set ( state . boardLists , list . id , list ) ;
10394 } ,
10495
105- [ mutationTypes . RECEIVE_ADD_LIST_ERROR ] : ( ) => {
106- notImplemented ( ) ;
107- } ,
108-
10996 [ mutationTypes . MOVE_LIST ] : ( state , { movedList, listAtNewIndex } ) => {
11097 const { boardLists } = state ;
11198 Vue . set ( boardLists , movedList . id , movedList ) ;
@@ -172,35 +159,11 @@ export default {
172159 state . isSettingAssignees = isLoading ;
173160 } ,
174161
175- [ mutationTypes . REQUEST_ADD_ISSUE ] : ( ) => {
176- notImplemented ( ) ;
177- } ,
178-
179- [ mutationTypes . RECEIVE_ADD_ISSUE_SUCCESS ] : ( ) => {
180- notImplemented ( ) ;
181- } ,
182-
183- [ mutationTypes . RECEIVE_ADD_ISSUE_ERROR ] : ( ) => {
184- notImplemented ( ) ;
185- } ,
186-
187162 [ mutationTypes . MUTATE_ISSUE_SUCCESS ] : ( state , { issue } ) => {
188163 const issueId = getIdFromGraphQLId ( issue . id ) ;
189164 Vue . set ( state . boardItems , issueId , formatIssue ( { ...issue , id : issueId } ) ) ;
190165 } ,
191166
192- [ mutationTypes . REQUEST_UPDATE_ISSUE ] : ( ) => {
193- notImplemented ( ) ;
194- } ,
195-
196- [ mutationTypes . RECEIVE_UPDATE_ISSUE_SUCCESS ] : ( ) => {
197- notImplemented ( ) ;
198- } ,
199-
200- [ mutationTypes . RECEIVE_UPDATE_ISSUE_ERROR ] : ( ) => {
201- notImplemented ( ) ;
202- } ,
203-
204167 [ mutationTypes . ADD_BOARD_ITEM_TO_LIST ] : (
205168 state ,
206169 { itemId, listId, moveBeforeId, moveAfterId, atIndex } ,
@@ -220,14 +183,6 @@ export default {
220183 Vue . delete ( state . boardItems , itemId ) ;
221184 } ,
222185
223- [ mutationTypes . SET_CURRENT_PAGE ] : ( ) => {
224- notImplemented ( ) ;
225- } ,
226-
227- [ mutationTypes . TOGGLE_EMPTY_STATE ] : ( ) => {
228- notImplemented ( ) ;
229- } ,
230-
231186 [ mutationTypes . REQUEST_GROUP_PROJECTS ] : ( state , fetchNext ) => {
232187 Vue . set ( state , 'groupProjectsFlags' , {
233188 [ fetchNext ? 'isLoadingMore' : 'isLoading' ] : true ,
0 commit comments