changeset 115:84551452a9c9

rm dead code
author drewp@bigasterisk.com
date Sat, 19 Mar 2022 16:37:29 -0700
parents 4b33a479dc2f
children dd3325cc023e
files src/layout/Layout.ts
diffstat 1 files changed, 0 insertions(+), 55 deletions(-) [+]
line wrap: on
line diff
--- 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<ISP, Immutable.Set<Term>>;
-//   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<NamedNode>();
-
-//     this.graphCells = Immutable.Map<ISP, Immutable.Set<Term>>().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<Term>()).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,
-//     });
-//   }
-// }