diff --git a/gpx/src/gpx.ts b/gpx/src/gpx.ts index 1026c7cd..96382b99 100644 --- a/gpx/src/gpx.ts +++ b/gpx/src/gpx.ts @@ -84,14 +84,6 @@ abstract class GPXTreeNode> extends GPXTreeElement originalNextTimestamp = originalStartTimestamp; newPreviousTimestamp = this.children[i].getEndTimestamp(); } - - if (this instanceof GPXFile) { - // @ts-ignore - this.trk = freeze(children); - } else if (this instanceof Track) { - // @ts-ignore - this.trkseg = freeze(children); - } } }