# HG changeset patch # User drewp@bigasterisk.com # Date 1647733049 25200 # Node ID 84551452a9c9f6e18998d1ef02b6041396aaa880 # Parent 4b33a479dc2fed95183bd08134676d67ecca48e9 rm dead code diff -r 4b33a479dc2f -r 84551452a9c9 src/layout/Layout.ts --- a/src/layout/Layout.ts Sat Mar 19 16:12:49 2022 -0700 +++ b/src/layout/Layout.ts Sat Mar 19 16:37:29 2022 -0700 @@ -192,58 +192,3 @@ return res; } } - -// // One table of rows with a common rdf:type. -// export class MultiSubjsTypeBlockLayout { -// subjs: NamedNode[]; -// preds: NamedNode[]; -// graphCells: Immutable.Map>; -// constructor(graph: Store, byType: TypeToSubjs, table: TableDesc) { -// const subjSet = byType.get(table.primary); -// this.subjs = subjSet ? Array.from(subjSet) : []; -// this.subjs.sort(); - -// let preds = Immutable.Set(); - -// this.graphCells = Immutable.Map>().withMutations( -// (mutGraphCells) => { -// this.subjs.forEach((subj: NamedNode) => { -// graph.forEach( -// (q: Quad) => { -// if (!Util.isNamedNode(q.predicate)) { -// throw new Error(); -// } - -// const pred = q.predicate as NamedNode; -// if (pred.equals(rdf.type)) { -// // the whole block is labeled with the type -// return; -// } -// preds = preds.add(pred); -// const cellKey = this.makeCellKey(subj, pred); -// mutGraphCells.set( -// cellKey, -// mutGraphCells.get(cellKey, Immutable.Set()).add(q.object) -// ); -// }, -// subj, -// null, -// null, -// null -// ); -// }); -// } -// ); -// this.preds = Array.from(preds); -// this.preds.splice(this.preds.indexOf(rdf.type), 1); -// // also pull out label, which should be used on 1st column -// this.preds.sort(); -// } - -// makeCellKey(subj: NamedNode, pred: NamedNode): ISP { -// return SP({ -// subj: subj, -// pred: pred, -// }); -// } -// }