From 3f9b4e498da5ad46cdbd8665be76bfb2c435e5aa Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Fri, 8 Aug 2025 10:29:24 -0500 Subject: [PATCH] change(web): drops unnecessary context getter --- .../src/main/correction/context-state.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/web/src/engine/predictive-text/worker-thread/src/main/correction/context-state.ts b/web/src/engine/predictive-text/worker-thread/src/main/correction/context-state.ts index 9713bfaee1..80e82712ae 100644 --- a/web/src/engine/predictive-text/worker-thread/src/main/correction/context-state.ts +++ b/web/src/engine/predictive-text/worker-thread/src/main/correction/context-state.ts @@ -18,7 +18,7 @@ export class ContextState { * The context window in view for the represented Context state, * as passed between the predictive-text worker and its host. */ - private _context: Context; + readonly context: Context; /** * The active lexical model operating upon the Context. @@ -88,8 +88,7 @@ export class ContextState { constructor(context: Context, model: LexicalModel, tokenization?: ContextTokenization); constructor(param1: Context | ContextState, model?: LexicalModel, tokenization?: ContextTokenization) { if(!(param1 instanceof ContextState)) { - const context = param1; - this._context = context; + this.context = param1; this.model = model; if(tokenization) { this.tokenization = tokenization; @@ -111,14 +110,6 @@ export class ContextState { } } - /** - * The context window in view for the represented Context state, - * as passed between the predictive-text worker and its host. - */ - get context(): Context { - return this._context; - } - /** * Initializes the ContextState instance for use when no valid prior * information is available - typically, immediately after engine