Skip to content

Commit 9eda52e

Browse files
committed
fix unused functions
1 parent 5658e72 commit 9eda52e

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

internal_stores/model/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ export default function useModelStyle() {
7575
return modelSurfacesStyleStore.modelSurfaceVisibility(id, component_id)
7676
} else if (component_type === "Block") {
7777
return modelBlocksStyleStore.modelBlockVisibility(id, component_id)
78-
} else if (component_type === "Edge") {
79-
return modelEdgesStyleStore.modelEdgesVisibility(id)
8078
}
8179
throw new Error("Unknown model component_type: " + component_type)
8280
}
@@ -184,10 +182,8 @@ export default function useModelStyle() {
184182
return {
185183
modelVisibility,
186184
visibleMeshComponents,
187-
modelMeshComponentVisibility,
188185
setModelVisibility,
189186
setModelColor,
190-
setModelMeshComponentVisibility,
191187
applyModelStyle,
192188
setModelMeshComponentsDefaultStyle,
193189
...useModelBlocksStyle(),

stores/data_style.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,11 @@ export const useDataStyleStore = defineStore("dataStyle", () => {
4040
}
4141

4242
function setModelEdgesVisibility(id, visibility) {
43-
modelStyleStore.setModelMeshComponentVisibility(
44-
id,
45-
"Edge",
46-
null,
47-
visibility,
48-
)
43+
return modelStyleStore.setModelEdgesVisibility(id, visibility)
4944
}
5045

5146
function modelEdgesVisibility(id) {
52-
return modelStyleStore.modelMeshComponentVisibility(id, "Edge", null)
47+
return modelStyleStore.modelEdgesVisibility(id)
5348
}
5449

5550
function exportStores() {

0 commit comments

Comments
 (0)