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, { this.setContentTerms(definitions, {
focus: false, focus: false,
sentence: {text: query, offset: 0}, sentence: {text: query, offset: 0},
url: window.location.href, url: window.location.href
clearHistoryOnce: true
}); });
} else { } else {
this.container.textContent = ''; this.container.textContent = '';

View File

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

View File

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