Skip to content

Commit 1d339fe

Browse files
author
Enno Woortmann
committed
remove unnecessary function
1 parent 36ca8c9 commit 1d339fe

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/SchemaProcessor/PostProcessor/BuilderClassPostProcessor.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
use PHPModelGenerator\PropertyProcessor\Decorator\TypeHint\TypeHintTransferDecorator;
2020
use PHPModelGenerator\Utils\RenderHelper;
2121

22-
/**
23-
* Class PopulatePostProcessor
24-
*
25-
* @package PHPModelGenerator\SchemaProcessor\PostProcessor
26-
*/
2722
class BuilderClassPostProcessor extends PostProcessor
2823
{
2924
/** @var Schema[] */
@@ -58,8 +53,6 @@ public function postProcess(): void
5853
}
5954
}
6055

61-
$this->generateModelDirectory($schema->getTargetFileName());
62-
6356
$namespace = trim(
6457
join('\\', [$this->generatorConfiguration->getNamespacePrefix(), $schema->getClassPath()]),
6558
'\\',
@@ -97,14 +90,6 @@ public function postProcess(): void
9790
}
9891
}
9992

100-
protected function generateModelDirectory(string $targetFileName): void
101-
{
102-
$destination = dirname($targetFileName);
103-
if (!is_dir($destination) && !mkdir($destination, 0777, true)) {
104-
throw new FileSystemException("Can't create path $destination");
105-
}
106-
}
107-
10893
/**
10994
* @param PropertyInterface[] $properties
11095
*

0 commit comments

Comments
 (0)