소스 검색

#784 : Remove several empty and deprecated getDefaultOptions methods

Baptiste "Talus" Clavie 13 년 전
부모
커밋
64cb697046
2개의 변경된 파일1개의 추가작업 그리고 14개의 파일을 삭제
  1. 0 5
      Form/Type/DateRangeType.php
  2. 1 9
      Form/Type/DateTimeRangeType.php

+ 0 - 5
Form/Type/DateRangeType.php

@@ -38,11 +38,6 @@ class DateRangeType extends AbstractType
         $builder->add('end', 'date', array_merge(array('required' => false), $options['field_options']));
     }
 
-    public function getDefaultOptions()
-    {
-        return array();
-    }
-
     /**
      * {@inheritDoc}
      */

+ 1 - 9
Form/Type/DateTimeRangeType.php

@@ -37,15 +37,7 @@ class DateTimeRangeType extends AbstractType
         $builder->add('start', 'datetime', array_merge(array('required' => false), $options['field_options']));
         $builder->add('end', 'datetime', array_merge(array('required' => false), $options['field_options']));
     }
-
-    /**
-     * {@inheritDoc}
-     */
-    public function getDefaultOptions()
-    {
-        return array();
-    }
-
+    
     /**
      * {@inheritDoc}
      */