Remove all cqi inga function code fragments

This commit is contained in:
Patrick Jentsch
2023-06-05 10:42:52 +02:00
parent 44d98dfa46
commit 2f3ddc6b81
3 changed files with 0 additions and 32 deletions

View File

@ -150,20 +150,6 @@ class CQiCorpus {
this.socket.emit('cqi.corpora.corpus.update_db', args);
}
inga() {
return new Promise((resolve, reject) => {
const args = {corpus_name: this.name};
this.socket.emit('cqi.corpora.corpus.inga', args, response => {
if (response.code === 200) {
resolve(response.payload);
} else {
reject(response);
}
});
});
}
}

View File

@ -35,10 +35,6 @@ class CorpusAnalysisApp {
.then(
cQiCorpus => {
this.data.corpus = {o: cQiCorpus};
cQiCorpus.inga().then(
response => {console.log(response.payload);}, // Hier wird das promise behandelt, wenn es erfolgreich war
response => {console.log(`${response.code}: ${response.msg}`);} // Hier wenn es nicht erfolgreich war
);
// TODO: Don't do this here
cQiCorpus.updateDb();
this.enableActionElements();