Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutivarade committed Nov 8, 2024
1 parent 388a618 commit 5a5e399
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 273 deletions.
254 changes: 0 additions & 254 deletions src/datasource/trk/backup/skeletonWriter.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/datasource/trk/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ class trkSkeletonSource extends WithParameters(
get vertexAttributes() {
return this.parameters.metadata.vertexAttributes;
}

// get skeleton() {
// return this.parameters.binarydata.skeleton;
// }
}

function parseTransform(data: any): mat4 {
Expand Down Expand Up @@ -141,11 +137,6 @@ function parseSkeletonMetadata(data: any): ParsedSkeletonMetadata {
vertexAttributes.set(id, { dataType, numComponents });
});
});
// const sharding = verifyObjectProperty(
// data,
// "sharding",
// parseShardingParameters,
// );
const segmentPropertyMap = verifyObjectProperty(
data,
"segment_properties",
Expand All @@ -154,7 +145,6 @@ function parseSkeletonMetadata(data: any): ParsedSkeletonMetadata {
return {
metadata: {
transform, vertexAttributes,
// sharding
} as SkeletonMetadata,
segmentPropertyMap,
};
Expand Down Expand Up @@ -466,7 +456,6 @@ export function getSegmentPropertyMap(
async function getSegmentPropertyMapDataSource(
options: GetDataSourceOptions,
credentialsProvider: SpecialProtocolCredentialsProvider,
// url: string,
metadata: unknown,
): Promise<DataSource> {
options;
Expand All @@ -481,7 +470,6 @@ async function getSegmentPropertyMapDataSource(
options.chunkManager,
credentialsProvider,
metadata,
// url,
),
},
},
Expand Down Expand Up @@ -558,7 +546,6 @@ export class TrkDataSource extends DataSourceProvider {
return await getSegmentPropertyMapDataSource(
options,
credentialsProvider,
// url,
metadata,
);

Expand Down
6 changes: 0 additions & 6 deletions src/skeleton/decode_precomputed_skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,15 @@ import {
Endianness,
} from "#src/util/endian.js";

// console.log(import.meta.url);

export function decodeSkeletonChunk(
chunk: SkeletonChunk,
response: ArrayBuffer,
vertexAttributes: Map<string, VertexAttributeInfo>,
) {

// console.log("start of decode vertices and edges")

const dv = new DataView(response);
const numVertices = dv.getUint32(0, true);
// console.log(numVertices);
const numEdges = dv.getUint32(4, true);
// console.log(numEdges);

const vertexPositionsStartOffset = 8;

Expand Down

0 comments on commit 5a5e399

Please sign in to comment.