Skip to content

Commit

Permalink
Remove unused events filtersChange, requestFilters.
Browse files Browse the repository at this point in the history
Some added types to `BaseCompiler.compile`
  • Loading branch information
OfekShilon committed May 14, 2024
1 parent bcb397f commit dd623e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
8 changes: 4 additions & 4 deletions lib/base-compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2858,10 +2858,10 @@ export class BaseCompiler implements ICompiler {
}

async compile(
source,
options,
backendOptions,
filters,
source: string,
options: string[],
backendOptions: Record<string, any>,
filters: ParseFiltersAndOutputOptions,
bypassCache: BypassCache,
tools,
executeParameters,
Expand Down
3 changes: 0 additions & 3 deletions static/event-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -88,7 +87,6 @@ export type EventMap = {
) => void;
executorClose: (executorId: number) => void;
executorOpen: (executorId: number, editorId: boolean | number) => void;
filtersChange: (compilerId: number, filters: Partial<CompilerOutputOptions>) => void;
findCompilers: () => void;
findEditors: () => void;
findExecutors: () => void;
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 0 additions & 7 deletions static/panes/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2996,11 +2996,6 @@ export class Compiler extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Co

this.eventHub.on('cfgViewOpened', this.onCfgViewOpened, this);
this.eventHub.on('cfgViewClosed', this.onCfgViewClosed, this);
this.eventHub.on('requestFilters', id => {
if (id === this.id) {
this.eventHub.emit('filtersChange', this.id, this.getEffectiveFilters());
}
});
this.eventHub.on('requestCompiler', id => {
if (id === this.id) {
this.sendCompiler();
Expand Down Expand Up @@ -3216,8 +3211,6 @@ export class Compiler extends MonacoPane<monaco.editor.IStandaloneCodeEditor, Co
}

onFilterChange(): void {
const filters = this.getEffectiveFilters();
this.eventHub.emit('filtersChange', this.id, filters);
this.updateState();
this.compile();
this.updateButtons();
Expand Down

0 comments on commit dd623e4

Please sign in to comment.