Delete unnecessary setter

This commit is contained in:
sienori 2018-11-15 21:53:35 +09:00
parent 44c1cb37f5
commit a3fcd5ab67

View file

@ -8,10 +8,6 @@ class Translate {
this.history = []; this.history = [];
} }
set sourceWord(word) {
this.sourceWord = word;
}
getHistory(sourceWord, sourceLang, targetLang) { getHistory(sourceWord, sourceLang, targetLang) {
const history = this.history.find( const history = this.history.find(
history => history =>