Skip to content

Commit 5550371

Browse files
committed
remove unused vars
1 parent 511440e commit 5550371

File tree

16 files changed

+15
-31
lines changed

16 files changed

+15
-31
lines changed

src/libs/observable-api/observer.controller.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('UmbObserverController', () => {
2020
const state = new UmbObjectState(undefined);
2121
const observable = state.asObservable();
2222

23-
const callbackMethod = (state: unknown) => {};
23+
const callbackMethod = () => {};
2424

2525
const firstCtrl = new UmbObserverController(hostElement, observable, callbackMethod, 'my-test-alias');
2626
const secondCtrl = new UmbObserverController(hostElement, observable, callbackMethod, 'my-test-alias');
@@ -33,7 +33,7 @@ describe('UmbObserverController', () => {
3333
const state = new UmbObjectState(undefined);
3434
const observable = state.asObservable();
3535

36-
const callbackMethod = (state: unknown) => {};
36+
const callbackMethod = () => {};
3737

3838
const mySymbol = Symbol();
3939
const firstCtrl = new UmbObserverController(hostElement, observable, callbackMethod, mySymbol);
@@ -47,7 +47,7 @@ describe('UmbObserverController', () => {
4747
const state = new UmbObjectState(undefined);
4848
const observable = state.asObservable();
4949

50-
const callbackMethod = (state: unknown) => {};
50+
const callbackMethod = () => {};
5151

5252
// Imitates the behavior of the observe method in the UmbClassMixin
5353
let controllerAlias1 = null;

src/packages/data-type/workspace/views/details/data-type-details-workspace-view.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
component: 'umb-data-type-workspace-view-edit',
1313
id: 'umb-data-type-workspace-view-edit',
1414
decorators: [
15-
(story) => {
15+
() => {
1616
return html`TODO: make use of mocked workspace context??`;
1717
/*html` <umb-context-provider key="umbDataTypeContext" .value=${new UmbDataTypeWorkspaceContext(data[0])}>
1818
${story()}

src/packages/data-type/workspace/views/info/workspace-view-data-type-info.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
component: 'umb-workspace-view-data-type-info',
1313
id: 'umb-workspace-view-data-type-info',
1414
decorators: [
15-
(story) => {
15+
() => {
1616
return html`TODO: make use of mocked workspace context??`;
1717
/*html` <umb-context-provider key="umbDataTypeContext" .value=${new UmbDataTypeWorkspaceContext(data[0])}>
1818
${story()}

src/packages/dictionary/repository/item/dictionary-item.server.data-source.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { UMB_DICTIONARY_ENTITY_TYPE } from '../../entity.js';
22
import type { UmbDictionaryItemModel } from './types.js';
33
import { UmbItemServerDataSourceBase } from '@umbraco-cms/backoffice/repository';
4-
import type {
5-
DictionaryItemItemResponseModel,
6-
DictionaryItemResponseModel,
7-
} from '@umbraco-cms/backoffice/external/backend-api';
4+
import type { DictionaryItemItemResponseModel } from '@umbraco-cms/backoffice/external/backend-api';
85
import { DictionaryService } from '@umbraco-cms/backoffice/external/backend-api';
96
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
107

src/packages/dictionary/tree/manifests.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
UMB_DICTIONARY_TREE_REPOSITORY_ALIAS,
55
UMB_DICTIONARY_TREE_STORE_ALIAS,
66
} from './constants.js';
7-
import { UmbDictionaryTreeStore } from './dictionary-tree.store.js';
87
import { manifests as reloadTreeItemChildrenManifests } from './reload-tree-item-children/manifests.js';
98
import type {
109
ManifestRepository,

src/packages/documents/document-blueprints/tree/document-blueprint-tree.server.data-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const getChildrenOf = (args: UmbTreeChildrenOfRequestArgs) => {
5959
}
6060
};
6161

62-
const getAncestorsOf = (args: UmbTreeAncestorsOfRequestArgs) => {
62+
const getAncestorsOf = () => {
6363
throw new Error('Not implemented');
6464
/** TODO: Implement when endpoint becomes available... */
6565
};

src/packages/documents/document-blueprints/workspace/document-blueprint-workspace.context.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import {
1616
import {
1717
UmbSubmittableWorkspaceContextBase,
1818
UmbWorkspaceIsNewRedirectController,
19-
UmbWorkspaceRouteManager,
2019
UmbWorkspaceSplitViewManager,
2120
} from '@umbraco-cms/backoffice/workspace';
2221
import { UmbContentTypeStructureManager } from '@umbraco-cms/backoffice/content-type';

src/packages/documents/documents/entity-actions/manifests.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { UMB_DOCUMENT_DETAIL_REPOSITORY_ALIAS, UMB_DOCUMENT_ITEM_REPOSITORY_ALIA
22
import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js';
33
import {
44
UMB_USER_PERMISSION_DOCUMENT_DELETE,
5-
UMB_USER_PERMISSION_DOCUMENT_NOTIFICATIONS,
6-
UMB_USER_PERMISSION_DOCUMENT_PERMISSIONS,
75
UMB_USER_PERMISSION_DOCUMENT_PUBLISH,
86
UMB_USER_PERMISSION_DOCUMENT_UNPUBLISH,
97
} from '../user-permissions/constants.js';

src/packages/documents/documents/entity-bulk-actions/manifests.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { UMB_DOCUMENT_COLLECTION_ALIAS } from '../collection/index.js';
22
import { UMB_DOCUMENT_ENTITY_TYPE } from '../entity.js';
3-
import { UmbDocumentDuplicateEntityBulkAction } from './duplicate/duplicate.action.js';
4-
import { UmbDocumentDeleteEntityBulkAction } from './delete/delete.action.js';
5-
import { UmbMoveDocumentEntityBulkAction } from './move/move.action.js';
6-
import { UmbDocumentPublishEntityBulkAction } from './publish/publish.action.js';
7-
import { UmbDocumentUnpublishEntityBulkAction } from './unpublish/unpublish.action.js';
83
import type { UmbCollectionBulkActionPermissions } from '@umbraco-cms/backoffice/collection';
94
import type { ManifestEntityBulkAction } from '@umbraco-cms/backoffice/extension-registry';
105
import {

src/packages/media/media/entity-bulk-actions/move/move.action.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export class UmbMediaMoveEntityBulkAction extends UmbEntityBulkActionBase<object
1515
},
1616
});
1717
if (modalContext) {
18-
const { selection } = await modalContext.onSubmit();
19-
const destination = selection[0];
18+
//const { selection } = await modalContext.onSubmit();
19+
//const destination = selection[0];
2020
//await this.repository?.move(this.selection, destination);
2121
}
2222
}

0 commit comments

Comments
 (0)