Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
crisu83 committed Feb 11, 2018
1 parent d3d02d0 commit 8df899f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 49 deletions.
12 changes: 0 additions & 12 deletions src/Type/Definition/Behavior/FieldsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,6 @@ public function addFields(array $fields)
return $this;
}

/**
* @param string $fieldName
* @return Field|null
* @throws \Exception
*/
public function getField(string $fieldName): ?Field
{
$this->defineFieldMapIfNecessary();

return $this->_fieldMap[$fieldName] ?? null;
}

/**
* @return Field[]
* @throws \Exception
Expand Down
26 changes: 1 addition & 25 deletions src/Type/Definition/EnumType.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,30 +127,6 @@ public function parseLiteral(NodeInterface $astNode)
return null;
}

/**
* @param EnumValue $value
* @return $this
*/
public function addValue(EnumValue $value): EnumType
{
$this->_values[] = $value;

return $this;
}

/**
* @param array $values
* @return $this
*/
public function addValues(array $values): EnumType
{
foreach ($values as $value) {
$this->addValue($value);
}

return $this;
}

/**
* @param string $name
* @return EnumValue
Expand Down Expand Up @@ -205,7 +181,7 @@ protected function getValueByValue($value): ?EnumValue
}

/**
* @param array $_valueMap
* @param array $valueMap
* @return $this
*/
protected function setValues(array $valueMap): EnumType
Expand Down
12 changes: 0 additions & 12 deletions src/Type/Definition/InputObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ class InputObjectType implements TypeInterface, InputTypeInterface
*/
private $_isFieldMapBuilt = false;

/**
* @param string $fieldName
* @return InputField|null
* @throws \Exception
*/
public function getField(string $fieldName): ?InputField
{
$this->buildFieldMapIfNecessary();

return $this->_fieldMap[$fieldName] ?? null;
}

/**
* @return InputField[]
* @throws \Exception
Expand Down

0 comments on commit 8df899f

Please sign in to comment.