Delete unnecessary setter
This commit is contained in:
parent
44c1cb37f5
commit
a3fcd5ab67
|
@ -8,10 +8,6 @@ class Translate {
|
|||
this.history = [];
|
||||
}
|
||||
|
||||
set sourceWord(word) {
|
||||
this.sourceWord = word;
|
||||
}
|
||||
|
||||
getHistory(sourceWord, sourceLang, targetLang) {
|
||||
const history = this.history.find(
|
||||
history =>
|
||||
|
|
Loading…
Reference in a new issue