From dd623e4901e51c9ae95db706802a8760fff302f7 Mon Sep 17 00:00:00 2001 From: Ofek Shilon Date: Tue, 14 May 2024 23:59:47 +0300 Subject: [PATCH] Remove unused events `filtersChange`, `requestFilters`. Some added types to `BaseCompiler.compile` --- lib/base-compiler.ts | 8 ++++---- static/event-map.ts | 3 --- static/panes/compiler.ts | 7 ------- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/lib/base-compiler.ts b/lib/base-compiler.ts index b63f415e9f8..e43850ae50d 100644 --- a/lib/base-compiler.ts +++ b/lib/base-compiler.ts @@ -2858,10 +2858,10 @@ export class BaseCompiler implements ICompiler { } async compile( - source, - options, - backendOptions, - filters, + source: string, + options: string[], + backendOptions: Record, + filters: ParseFiltersAndOutputOptions, bypassCache: BypassCache, tools, executeParameters, diff --git a/static/event-map.ts b/static/event-map.ts index aea53d43eb6..a1f8b5a6e95 100644 --- a/static/event-map.ts +++ b/static/event-map.ts @@ -23,7 +23,6 @@ // POSSIBILITY OF SUCH DAMAGE. import {Language} from '../types/languages.interfaces.js'; -import {CompilerOutputOptions} from '../types/features/filters.interfaces.js'; import {MessageWithLocation} from '../types/resultline/resultline.interfaces.js'; import {SiteSettings} from './settings.js'; import {Theme} from './themes.js'; @@ -88,7 +87,6 @@ export type EventMap = { ) => void; executorClose: (executorId: number) => void; executorOpen: (executorId: number, editorId: boolean | number) => void; - filtersChange: (compilerId: number, filters: Partial) => void; findCompilers: () => void; findEditors: () => void; findExecutors: () => void; @@ -144,7 +142,6 @@ export type EventMap = { requestTheme: () => void; resendCompilation: (compilerId: number) => void; requestCompiler: (compilerId: number) => void; - requestFilters: (compilerId: number) => void; resendExecution: (executorId: number) => void; resize: () => void; rustHirViewClosed: (compilerId: number) => void; diff --git a/static/panes/compiler.ts b/static/panes/compiler.ts index ac8df72f7f8..b89f8888448 100644 --- a/static/panes/compiler.ts +++ b/static/panes/compiler.ts @@ -2996,11 +2996,6 @@ export class Compiler extends MonacoPane { - if (id === this.id) { - this.eventHub.emit('filtersChange', this.id, this.getEffectiveFilters()); - } - }); this.eventHub.on('requestCompiler', id => { if (id === this.id) { this.sendCompiler(); @@ -3216,8 +3211,6 @@ export class Compiler extends MonacoPane