Skip to content

Commit eca35b4

Browse files
committed
[lexicon] Remove unused and deprecated API endpoints
1 parent 79f8922 commit eca35b4

File tree

1 file changed

+0
-75
lines changed

1 file changed

+0
-75
lines changed

src/lexicon.js

Lines changed: 0 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ const lexicon = function (fetch, baseUrl, token) {
2121
delete (id) {
2222
return api.fetch(`nouns/${id}/`, 'DELETE')
2323
},
24-
addTraining (id, trainingId) {
25-
return api.fetch(`nouns/${id}/add-training/`, 'POST', {training: trainingId})
26-
},
27-
removeTraining (id, trainingId) {
28-
return api.fetch(`nouns/${id}/remove-training/`, 'POST', {training: trainingId})
29-
},
3024
get (id) {
3125
return api.fetch(`nouns/${id}/`)
3226
},
@@ -37,29 +31,6 @@ const lexicon = function (fetch, baseUrl, token) {
3731
return api.fetch(`nouns/lemma-lookup/${trainingId}/${language}/${lemma}/`)
3832
}
3933
},
40-
missingNouns: {
41-
list (training, options = {}) {
42-
const query = {
43-
training,
44-
page: options.page,
45-
ignored: options.ignored,
46-
language: options.language,
47-
search: options.search,
48-
o: options.modified
49-
}
50-
const qs = new URLSearchParams(cleanQuery(query)).toString()
51-
return api.fetch(`missing-nouns/?${qs}`)
52-
},
53-
get (id) {
54-
return api.fetch(`missing-nouns/${id}/`)
55-
},
56-
ignore (id) {
57-
return api.fetch(`missing-nouns/${id}/ignore/`, 'PUT')
58-
},
59-
undoIgnore (id) {
60-
return api.fetch(`missing-nouns/${id}/ignore/`, 'DELETE')
61-
}
62-
},
6334
verbs: {
6435
list (trainings, options = {}) {
6536
const query = {
@@ -94,29 +65,6 @@ const lexicon = function (fetch, baseUrl, token) {
9465
return api.fetch(`verbs/lemma-lookup/${trainingId}/${language}/${lemma}/`)
9566
}
9667
},
97-
missingVerbs: {
98-
list (training, options = {}) {
99-
const query = {
100-
training,
101-
page: options.page,
102-
ignored: options.ignored,
103-
language: options.language,
104-
search: options.search,
105-
o: options.modified
106-
}
107-
const qs = new URLSearchParams(cleanQuery(query)).toString()
108-
return api.fetch(`missing-verbs/?${qs}`)
109-
},
110-
get (id) {
111-
return api.fetch(`missing-verbs/${id}/`)
112-
},
113-
ignore (id) {
114-
return api.fetch(`missing-verbs/${id}/ignore/`, 'PUT')
115-
},
116-
undoIgnore (id) {
117-
return api.fetch(`missing-verbs/${id}/ignore/`, 'DELETE')
118-
}
119-
},
12068
adjectives: {
12169
list (trainings, options = {}) {
12270
const query = {
@@ -151,29 +99,6 @@ const lexicon = function (fetch, baseUrl, token) {
15199
return api.fetch(`adjectives/lemma-lookup/${trainingId}/${language}/${lemma}/`)
152100
}
153101
},
154-
missingAdjectives: {
155-
list (training, options = {}) {
156-
const query = {
157-
training,
158-
page: options.page,
159-
ignored: options.ignored,
160-
language: options.language,
161-
search: options.search,
162-
o: options.modified
163-
}
164-
const qs = new URLSearchParams(cleanQuery(query)).toString()
165-
return api.fetch(`missing-adjectives/?${qs}`)
166-
},
167-
get (id) {
168-
return api.fetch(`missing-adjectives/${id}/`)
169-
},
170-
ignore (id) {
171-
return api.fetch(`missing-adjectives/${id}/ignore/`, 'PUT')
172-
},
173-
undoIgnore (id) {
174-
return api.fetch(`missing-adjectives/${id}/ignore/`, 'DELETE')
175-
}
176-
},
177102
languageDefinitions: {
178103
list () {
179104
return api.fetch('definitions/')

0 commit comments

Comments
 (0)