Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: disposing unit should not emit error #2529

Merged
merged 13 commits into from
Jun 15, 2024
Prev Previous commit
Next Next commit
chore: remove redundant code
  • Loading branch information
wzhudev authored and ybzky committed Jun 15, 2024
commit 29fe77923094500f6f8cec02c5a7272ab71a23e0
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ export class CalculateResultApplyController extends Disposable {
}

private _initialize(): void {
this._commandExecutedListener();
}

private _commandExecutedListener() {
this.disposeWithMe(
this._commandService.onCommandExecuted((command: ICommandInfo) => {
if (command.id !== SetFormulaCalculationResultMutation.id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

import {
Disposable,
ICommandService,
IResourceManagerService,
IUniverInstanceService,
LifecycleStages,
OnLifecycle,
UniverInstanceType } from '@univerjs/core';
Expand All @@ -30,11 +28,8 @@ const SHEET_DEFINED_NAME_PLUGIN = 'SHEET_DEFINED_NAME_PLUGIN';
@OnLifecycle(LifecycleStages.Ready, DefinedNameDataController)
export class DefinedNameDataController extends Disposable {
constructor(
@ICommandService private readonly _commandService: ICommandService,
@IUniverInstanceService private readonly _univerInstanceService: IUniverInstanceService,
@IDefinedNamesService private readonly _definedNamesService: IDefinedNamesService,
@IResourceManagerService private _resourceManagerService: IResourceManagerService

) {
super();

Expand Down
105 changes: 0 additions & 105 deletions packages/sheets/src/controllers/feature-calculation.controller.ts

This file was deleted.

4 changes: 1 addition & 3 deletions packages/sheets/src/sheets-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { Inject, Injector } from '@wendellhu/redi';
import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';
import { BasicWorksheetController } from './controllers/basic-worksheet.controller';
import { CalculateResultApplyController } from './controllers/calculate-result-apply.controller';
import { FeatureCalculationController } from './controllers/feature-calculation.controller';
import { MergeCellController } from './controllers/merge-cell.controller';
import { BorderStyleManagerService } from './services/border-style-manager.service';
import { NumfmtService } from './services/numfmt/numfmt.service';
Expand Down Expand Up @@ -114,8 +113,7 @@ export class UniverSheetsPlugin extends Plugin {
if (!this._config?.notExecuteFormula) {
// Should execute formula.
dependencies.push(
[CalculateResultApplyController],
[FeatureCalculationController]
[CalculateResultApplyController]
);
}

Expand Down