Permalink
Browse files

Remove useless code

  • Loading branch information...
1 parent 596b2cd commit b8a692ba98b33fe6488231bb9c4e85ad9c9ab749 @vicb vicb committed Jul 4, 2011
Showing with 0 additions and 8 deletions.
  1. +0 −4 Mapping/ClassMetadata.php
  2. +0 −4 Mapping/ElementMetadata.php
@@ -204,10 +204,6 @@ protected function addMemberMetadata(MemberMetadata $metadata)
{
$property = $metadata->getPropertyName();
- if (!isset($this->members[$property])) {
- $this->members[$property] = array();
- }
-
$this->members[$property][] = $metadata;
}
@@ -56,10 +56,6 @@ public function addConstraint(Constraint $constraint)
$this->constraints[] = $constraint;
foreach ($constraint->groups as $group) {
- if (!isset($this->constraintsByGroup[$group])) {
- $this->constraintsByGroup[$group] = array();
- }
-
$this->constraintsByGroup[$group][] = $constraint;
}

0 comments on commit b8a692b

Please sign in to comment.