Skip to content

Commit

Permalink
udpates
Browse files Browse the repository at this point in the history
  • Loading branch information
jairad26 committed Jan 10, 2025
1 parent fb75de8 commit 0a7720d
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions sdk/assemblyscript/src/assembly/neo4j.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,29 +223,6 @@ export class Point2D {
String(): string {
return `Point{SpatialRefId=${this.SpatialRefId}, X=${this.X}, Y=${this.Y}}`;
}

__INITIALIZE(): this {
return this;
}

__SERIALIZE(): string {
return JSON.stringify(this);
}

/* eslint-disable @typescript-eslint/no-unused-vars */
__DESERIALIZE(
data: string,
key_start: i32,
key_end: i32,
value_start: i32,
value_end: i32,
): boolean {
const obj = JSON.parse<Point2D>(data);
this.X = obj.X;
this.Y = obj.Y;
this.SpatialRefId = obj.SpatialRefId;
return true;
}
}


Expand All @@ -270,28 +247,4 @@ export class Point3D {
String(): string {
return `Point{SpatialRefId=${this.SpatialRefId}, X=${this.X}, Y=${this.Y}, Z=${this.Z}}`;
}

__INITIALIZE(): this {
return this;
}

__SERIALIZE(): string {
return JSON.stringify(this);
}

/* eslint-disable @typescript-eslint/no-unused-vars */
__DESERIALIZE(
data: string,
key_start: i32,
key_end: i32,
value_start: i32,
value_end: i32,
): boolean {
const obj = JSON.parse<Point3D>(data);
this.X = obj.X;
this.Y = obj.Y;
this.Z = obj.Z;
this.SpatialRefId = obj.SpatialRefId;
return true;
}
}

0 comments on commit 0a7720d

Please sign in to comment.