Skip to content

Commit

Permalink
chore(): removal of beta.1 deprecations (#390)
Browse files Browse the repository at this point in the history
* chore(): removal of deprecations from `beta.1` release

* chore(): missed removed interface
  • Loading branch information
emoralesb05 authored Mar 3, 2017
1 parent 58094fa commit 9ce8469
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 43 deletions.
22 changes: 0 additions & 22 deletions src/platform/core/loading/directives/loading.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ export class TdLoadingDirective implements OnInit, OnDestroy {
this._name = name;
}

/**
* @deprecated in 1.0.0-beta.1
*
* Please use the `tdLoadingType` method.
*/
@Input('loadingType')
set typeDeprecated(type: LoadingType) {
/* tslint:disable-next-line */
console.warn("loadingType is deprecated. Please use tdLoadingType instead");
this.type = type;
}
/**
* tdLoadingType?: LoadingType or ['linear' | 'circular']
* Sets the type of loading mask depending on value.
Expand All @@ -53,17 +42,6 @@ export class TdLoadingDirective implements OnInit, OnDestroy {
}
}

/**
* @deprecated in 1.0.0-beta.1
*
* Please use the `tdLoadingMode` method.
*/
@Input('loadingMode')
set modeDeprecated(mode: LoadingMode) {
/* tslint:disable-next-line */
console.warn("loadingMode is deprecated. Please use tdLoadingMode instead");
this.mode = mode;
}
/**
* tdLoadingMode?: LoadingMode or ['determinate' | 'indeterminate']
* Sets the mode of loading mask depending on value.
Expand Down
2 changes: 1 addition & 1 deletion src/platform/core/loading/loading.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const TD_LOADING_ENTRY_COMPONENTS: Type<any>[] = [
];

export { LoadingType, LoadingMode, LoadingStrategy } from './loading.component';
export { TdLoadingService, ITdLoadingConfig, ILoadingOptions } from './services/loading.service';
export { TdLoadingService, ITdLoadingConfig } from './services/loading.service';

@NgModule({
imports: [
Expand Down
20 changes: 0 additions & 20 deletions src/platform/core/loading/services/loading.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ import { Subscription } from 'rxjs/Subscription';
import { TdLoadingComponent, LoadingMode, LoadingStrategy, LoadingType } from '../loading.component';
import { TdLoadingFactory, ILoadingRef } from './loading.factory';

/**
* @deprecated in 1.0.0-beta.1
*/
export interface ILoadingOptions {
name: string;
type?: LoadingType;
mode?: LoadingMode;
}

export interface ITdLoadingConfig {
name: string;
type?: LoadingType;
Expand Down Expand Up @@ -105,17 +96,6 @@ export class TdLoadingService {
this._context[fullscreenConfig.name] = this._loadingFactory.createFullScreenComponent(fullscreenConfig);
}

/**
* @deprecated in 1.0.0-beta.1
*
* Please use the `create()` method.
*/
public createOverlayComponent(config: ITdLoadingConfig, viewContainerRef: ViewContainerRef): void {
/* tslint:disable-next-line */
console.warn("createOverlayComponent() is deprecated. Please use create() instead");
this.create(config);
}

/**
* params:
* - name: string
Expand Down

0 comments on commit 9ce8469

Please sign in to comment.