CatalogContents: remove unused code

This commit is contained in:
Seth Ladygo
2019-05-17 14:27:55 -07:00
parent b626b5c400
commit f7acf26867

View File

@ -236,28 +236,7 @@ export default {
arrayMove.mutate(mats, fromIndex, toIndex) arrayMove.mutate(mats, fromIndex, toIndex)
this.setModelMaterials({ model: this.selectedModel, materials: mats }) 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([ ...mapActions([
'reorderSection', 'reorderSection',
'setSectionPages', 'setSectionPages',