From 3d8976ac3c3b150bbdce01dc74cfb243d4b3a498 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 14 Apr 2016 13:51:23 -0500 Subject: [PATCH] chore: remove deprecated warnings --- ionic/components/icon/icon.ts | 9 +-------- ionic/components/nav/nav-controller.ts | 8 -------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/ionic/components/icon/icon.ts b/ionic/components/icon/icon.ts index 916df841e7..693b2d0bc0 100644 --- a/ionic/components/icon/icon.ts +++ b/ionic/components/icon/icon.ts @@ -35,7 +35,7 @@ import {Config} from '../../config/config'; * */ @Directive({ - selector: 'ion-icon,icon', + selector: 'ion-icon', host: { 'role': 'img' } @@ -58,13 +58,6 @@ export class Icon { private _renderer: Renderer ) { this.mode = config.get('iconMode'); - - if (_elementRef.nativeElement.tagName === 'ICON') { - // deprecated warning - console.warn(' has been renamed to '); - console.warn(' requires the "name" attribute w/ a value'); - console.warn(' should now be '); - } } /** diff --git a/ionic/components/nav/nav-controller.ts b/ionic/components/nav/nav-controller.ts index 418c693ccb..3f956a00da 100644 --- a/ionic/components/nav/nav-controller.ts +++ b/ionic/components/nav/nav-controller.ts @@ -319,14 +319,6 @@ export class NavController extends Ion { return promise; } - /** - * @private - */ - private setViews(components, opts?: NavOptions) { - console.warn('setViews() deprecated, use setPages() instead'); - return this.setPages(components, opts); - } - /** * Push is how we can pass components and navigate to them. We push the component * we want to navigate to on to the navigation stack.