CatalogContents: remove unused code
This commit is contained in:
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user