Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Apr 22, 2023
1 parent 95e2ad2 commit d5ad501
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/docs-utilities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ function getUnstyledFilename(filename, definitionFile = false) {
.replace(/.js$/, '');
unstyledFile = unstyledFile.replace(/Styled/g, '');

const pathParts = unstyledFile.split(separator);

const componentName = pathParts[pathParts.length - 1];
const directoryName = pathParts[pathParts.length - 2];

const componentNameReg = new RegExp(componentName, 'g');

if (separator === '/') {
unstyledFile = unstyledFile.replace(
/packages\/mui-lab|packages\/mui-material/g,
Expand Down

0 comments on commit d5ad501

Please sign in to comment.