Skip to content

Commit

Permalink
Merge pull request #19544 from storybookjs/deprecate/remaining-client…
Browse files Browse the repository at this point in the history
…-api

remove warning of removed feature in lib/client-api
  • Loading branch information
ndelangen authored Oct 20, 2022
2 parents 3020e77 + 6e65471 commit a120ffc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions code/lib/client-api/src/StoryStoreFacade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import type {
IndexEntry,
} from '@storybook/store';
import { logger } from '@storybook/client-logger';
import deprecate from 'util-deprecate';
import type { DocsOptions } from '@storybook/core-common';

export interface GetStorybookStory<TFramework extends AnyFramework> {
Expand All @@ -35,9 +34,6 @@ export interface GetStorybookKind<TFramework extends AnyFramework> {
stories: GetStorybookStory<TFramework>[];
}

const docs2Warning = deprecate(() => {},
`You cannot use \`.mdx\` files without using \`storyStoreV7\`. Consider upgrading to the new store.`);

export class StoryStoreFacade<TFramework extends AnyFramework> {
projectAnnotations: NormalizedProjectAnnotations<TFramework>;

Expand Down Expand Up @@ -152,7 +148,6 @@ export class StoryStoreFacade<TFramework extends AnyFramework> {
// NOTE: we could potentially share some of this code with the stories.json generation
addStoriesFromExports(fileName: Path, fileExports: ModuleExports) {
if (fileName.match(/\.mdx$/) && !fileName.match(/\.stories\.mdx$/)) {
docs2Warning();
return;
}

Expand Down

0 comments on commit a120ffc

Please sign in to comment.