remove dead code

This commit is contained in:
siikamiika 2019-11-30 04:59:36 +02:00
parent ff9510356e
commit be23ad7213
3 changed files with 2 additions and 17 deletions

View File

@ -221,8 +221,7 @@ class DisplaySearch extends Display {
this.setContentTerms(definitions, {
focus: false,
sentence: {text: query, offset: 0},
url: window.location.href,
clearHistoryOnce: true
url: window.location.href
});
} else {
this.container.textContent = '';

View File

@ -398,7 +398,7 @@ class Frontend {
textSource.getRect(),
textSource.getWritingMode(),
type,
{definitions, context: {sentence, url, focus, clearHistoryOnce: true}}
{definitions, context: {sentence, url, focus}}
);
this.textSourceCurrent = textSource;

View File

@ -349,13 +349,6 @@ class Display {
this.setEventListenersActive(false);
if (context.clearHistoryOnce) {
delete context.clearHistoryOnce;
if (this.context !== null) {
this.context.details.context.next = null;
}
}
if (context.focus !== false) {
window.focus();
}
@ -414,13 +407,6 @@ class Display {
this.setEventListenersActive(false);
if (context.clearHistoryOnce) {
delete context.clearHistoryOnce;
if (this.context !== null) {
this.context.details.context.next = null;
}
}
if (context.focus !== false) {
window.focus();
}