diff --git a/packages/core/graph/src/AdjacencyList.js b/packages/core/graph/src/AdjacencyList.js index 43f907d66b3..8e0259681ca 100644 --- a/packages/core/graph/src/AdjacencyList.js +++ b/packages/core/graph/src/AdjacencyList.js @@ -13,6 +13,7 @@ opaque type EdgeHash = number; /** The address of the edge in the edges map. */ opaque type EdgeAddress = number; +// eslint-disable-next-line no-unused-vars export type SerializedAdjacencyList = {| nodes: Uint32Array, edges: Uint32Array, @@ -36,8 +37,8 @@ const MIN_GROW_FACTOR = 2; const SHRINK_FACTOR = 0.5; export default class AdjacencyList { - #nodes: NodeTypeMap; - #edges: EdgeTypeMap; + #nodes /*: NodeTypeMap */; + #edges /*: EdgeTypeMap */; constructor( opts?: @@ -196,7 +197,6 @@ export default class AdjacencyList { }); // Copy the existing edges into the new array. - let max = fromNodeId(this.#nodes.nextId); copy.#nodes.nextId = this.#nodes.nextId; this.#edges.forEach( edge =>