From 79e2bb9291e2de0fb2c8cf637604bff760339caa Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Mon, 14 Nov 2016 16:44:25 -0800 Subject: [PATCH] refactor(core): remove dead code (#12871) --- modules/@angular/forms/src/directives.ts | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/modules/@angular/forms/src/directives.ts b/modules/@angular/forms/src/directives.ts index a68bc283fd..5010b3cf36 100644 --- a/modules/@angular/forms/src/directives.ts +++ b/modules/@angular/forms/src/directives.ts @@ -56,22 +56,12 @@ export const TEMPLATE_DRIVEN_DIRECTIVES: Type[] = [NgModel, NgModelGroup, N export const REACTIVE_DRIVEN_DIRECTIVES: Type[] = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName]; -/** - * A list of all the form directives. - * - * @stable - */ -export const FORM_DIRECTIVES: Type[][] = [TEMPLATE_DRIVEN_DIRECTIVES, SHARED_FORM_DIRECTIVES]; - -/** - * @stable - */ -export const REACTIVE_FORM_DIRECTIVES: Type[][] = - [REACTIVE_DRIVEN_DIRECTIVES, SHARED_FORM_DIRECTIVES]; - /** * Internal module used for sharing directives between FormsModule and ReactiveFormsModule */ -@NgModule({declarations: SHARED_FORM_DIRECTIVES, exports: SHARED_FORM_DIRECTIVES}) +@NgModule({ + declarations: SHARED_FORM_DIRECTIVES, + exports: SHARED_FORM_DIRECTIVES, +}) export class InternalFormsSharedModule { }