mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +08:00
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:
parent
f7909b8d40
commit
0824e8beee
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user