From f7acf26867f341deee6d3f16c7531cd9e1866603 Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Fri, 17 May 2019 14:27:55 -0700 Subject: [PATCH] CatalogContents: remove unused code --- cateditor/src/components/CatalogContents.vue | 21 -------------------- 1 file changed, 21 deletions(-) diff --git a/cateditor/src/components/CatalogContents.vue b/cateditor/src/components/CatalogContents.vue index 8818014..c0ed7dc 100644 --- a/cateditor/src/components/CatalogContents.vue +++ b/cateditor/src/components/CatalogContents.vue @@ -236,28 +236,7 @@ export default { arrayMove.mutate(mats, fromIndex, toIndex) this.setModelMaterials({ model: this.selectedModel, materials: mats }) }, - /* - groupByModel: function(materials) { - let models = [] - for (let mat of materials) { - let model = models.length > 0 ? models[models.length - 1] : null - - if (model === null || model.id !== mat.model) { - // new model - model = { id: mat.model, - name: mat.name, - materials: [mat.id] } - models.push(model) - } else { - // add to existing - model.materials.push(mat.id) - } - } - - return models - }, - */ ...mapActions([ 'reorderSection', 'setSectionPages',