Skip to content

Commit

Permalink
remove not needed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Oct 6, 2024
1 parent 412f0a3 commit d5f7013
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
11 changes: 0 additions & 11 deletions src/Generator/Type/GraphQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,6 @@ protected function getMap(string $type): string
return '[' . $type . ']';
}

protected function getUnion(array $types): string
{
return implode(' | ', $types);
}

protected function getIntersection(array $types): string
{
// in GraphQL there is no intersection type
return implode(' | ', $types);
}

protected function getGroup(string $type): string
{
return '(' . $type . ')';
Expand Down
10 changes: 0 additions & 10 deletions src/Generator/Type/MarkupAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,6 @@ protected function getMap(string $type): string
return 'Map (' . $type . ')';
}

protected function getUnion(array $types): string
{
return implode(' | ', $types);
}

protected function getIntersection(array $types): string
{
return implode(' & ', $types);
}

protected function getGroup(string $type): string
{
return '(' . $type . ')';
Expand Down
10 changes: 0 additions & 10 deletions src/Generator/Type/Protobuf.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,6 @@ protected function getMap(string $type): string
return 'map<string, ' . $type . '>';
}

protected function getUnion(array $types): string
{
return 'Struct';
}

protected function getIntersection(array $types): string
{
return 'Struct';
}

protected function getGroup(string $type): string
{
return '(' . $type . ')';
Expand Down

0 comments on commit d5f7013

Please sign in to comment.