Skip to content

Commit 0824e8b

Browse files
simjesKeen Yee Liau
authored and
Keen Yee Liau
committed
refactor(@angular-devkit/schematics): remove optimize from host-tree
Remove unused optimize method marked for removal in version 7.0
1 parent f7909b8 commit 0824e8b

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

etc/api/angular_devkit/schematics/src/_golden-api.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ export declare class HostTree implements Tree {
316316
get(path: string): FileEntry | null;
317317
getDir(path: string): DirEntry;
318318
merge(other: Tree, strategy?: MergeStrategy): void;
319-
optimize(): this;
320319
overwrite(path: string, content: Buffer | string): void;
321320
read(path: string): Buffer | null;
322321
rename(from: string, to: string): void;

packages/angular_devkit/schematics/src/tree/host-tree.ts

-6
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,6 @@ export class HostTree implements Tree {
148148
return this._record.willRename(path);
149149
}
150150

151-
// This can be used by old Schematics library with new Trees in some corner cases.
152-
// TODO: remove this for 7.0
153-
optimize() {
154-
return this;
155-
}
156-
157151
branch(): Tree {
158152
const branchedTree = new HostTree(this._backend);
159153
branchedTree._record = this._record.clone();

0 commit comments

Comments
 (0)