refactor(@angular-devkit/schematics): remove optimize from host-tree

Remove unused optimize method marked for removal in version 7.0
This commit is contained in:
Simon Jespersen 2019-08-14 09:42:27 +02:00 committed by Keen Yee Liau
parent f7909b8d40
commit 0824e8beee
2 changed files with 0 additions and 7 deletions

View File

@ -316,7 +316,6 @@ export declare class HostTree implements Tree {
get(path: string): FileEntry | null;
getDir(path: string): DirEntry;
merge(other: Tree, strategy?: MergeStrategy): void;
optimize(): this;
overwrite(path: string, content: Buffer | string): void;
read(path: string): Buffer | null;
rename(from: string, to: string): void;

View File

@ -148,12 +148,6 @@ export class HostTree implements Tree {
return this._record.willRename(path);
}
// This can be used by old Schematics library with new Trees in some corner cases.
// TODO: remove this for 7.0
optimize() {
return this;
}
branch(): Tree {
const branchedTree = new HostTree(this._backend);
branchedTree._record = this._record.clone();