Skip to content

Commit ff3c8c3

Browse files
Merge pull request #22019 from storybookjs/valentin/remove-dead-code
Remove dead code
2 parents 163dbe8 + 49d08c7 commit ff3c8c3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

code/addons/toolbars/src/components/ToolbarMenuList.tsx

-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ export const ToolbarMenuList: FC<ToolbarMenuListProps> = withKeyboardCycle(
3737
deprecate(
3838
'`showName` is deprecated as `name` will stop having dual purposes in the future. Please specify a `title` in `globalTypes` instead.'
3939
);
40-
} else if (!icon && !title) {
41-
title = name;
42-
deprecate(
43-
`Using the \`name\` "${name}" as toolbar title for backward compatibility. \`name\` will stop having dual purposes in the future. Please specify either a \`title\` or an \`icon\` in \`globalTypes\` instead.`
44-
);
4540
}
4641

4742
if (dynamicTitle) {

0 commit comments

Comments
 (0)