Skip to content

Commit

Permalink
[TreeView] Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Apr 26, 2024
1 parent 20af68d commit 4757413
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
9 changes: 0 additions & 9 deletions packages/x-tree-view/src/TreeItem/TreeItem.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ const TEST_TREE_VIEW_CONTEXT_VALUE: TreeViewContextValue<SimpleTreeViewPlugins>
getTreeItemIdAttribute: () => '',
mapFirstCharFromJSX: () => () => {},
canItemBeTabbed: () => false,
getJSXItemsChildrenIndexes: () => {},
setJSXItemsChildrenIndexes: () => {},
getNode: () => ({
parentId: null,
id: 'one',
idAttribute: undefined,
disabled: false,
expandable: false,
}),
} as any,
publicAPI: {
focusItem: () => {},
Expand Down
9 changes: 0 additions & 9 deletions packages/x-tree-view/src/internals/models/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ export type TreeViewUsedInstance<TSignature extends TreeViewAnyPluginSignature>
$$signature: TSignature;
};

export type TreeViewUsedPublicAPI<TSignature extends TreeViewAnyPluginSignature> =
TSignature['publicAPI'] &
MergePluginsProperty<TreeViewUsedPlugins<TSignature>, 'publicAPI'> & {
/**
* Private property only defined in TypeScript to be able to access the plugin signature from the publicAPI object.
*/
$$signature: TSignature;
};

type TreeViewUsedState<TSignature extends TreeViewAnyPluginSignature> = TSignature['state'] &
MergePluginsProperty<TreeViewUsedPlugins<TSignature>, 'state'>;

Expand Down

0 comments on commit 4757413

Please sign in to comment.