فهرست منبع

[Form] Removed obsolete code in TextType

Bernhard Schussek 14 سال پیش
والد
کامیت
c58b05a6d6
1فایلهای تغییر یافته به همراه0 افزوده شده و 10 حذف شده
  1. 0 10
      src/Symfony/Component/Form/Type/TextType.php

+ 0 - 10
src/Symfony/Component/Form/Type/TextType.php

@@ -17,16 +17,6 @@ use Symfony\Component\Form\FormView;
 
 class TextType extends AbstractType
 {
-    public function buildForm(FormBuilder $builder, array $options)
-    {
-        $builder->setAttribute('max_length', $options['max_length']);
-    }
-
-    public function buildView(FormView $view, FormInterface $form)
-    {
-        $view->set('max_length', $form->getAttribute('max_length'));
-    }
-
     public function getParent(array $options)
     {
         return 'field';