Remove dead code and incorrect unused comments
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -43,27 +43,5 @@ export default defineStore('conformanceInputStore', {
|
||||
break;
|
||||
}
|
||||
},
|
||||
/**
|
||||
* UNUSED
|
||||
* Temporarily set conformance input data which is probably fed to backend later.
|
||||
* @param {object} userInputObj
|
||||
*/
|
||||
setConformanceUserInput(userInputObj){
|
||||
this.inputDataToSave = {...userInputObj};
|
||||
},
|
||||
/** UNUSED
|
||||
* Set the starting time of time range to be saved later
|
||||
* @param {string} startStr
|
||||
*/
|
||||
setConformanceInputStart(startStr){
|
||||
this.inputDataToSave.inputStart = moment(startStr).format('YYYY-MM-DDTHH:mm:ss');
|
||||
},
|
||||
/** UNUSED
|
||||
* Set the ending time of time range to be saved later
|
||||
* @param {string} startStr
|
||||
*/
|
||||
setConformanceInputEnd(endStr){
|
||||
this.inputDataToSave.inputEnd = moment(endStr).format('YYYY-MM-DDTHH:mm:ss');
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -286,7 +286,6 @@ export default defineStore('filesStore', {
|
||||
}
|
||||
},
|
||||
/**
|
||||
* It seems that this function is unused
|
||||
* Remove a Deletion Record,真刪除被 Admin 或被其他帳號刪除的檔案
|
||||
* @param {number} id 檔案 ID
|
||||
*/
|
||||
|
||||
@@ -223,19 +223,7 @@ export default defineStore('useMapPathStore', {
|
||||
nodeToHighlight.data('nodeImageUrl', ImgCapsulesGlow[nodeToHighlight.data('level')]);
|
||||
});
|
||||
},
|
||||
highlightClickedPathUnused(clickedActiveTraceIndex: number, clickedPathListIndex: number) {
|
||||
this.activeTrace = clickedActiveTraceIndex;
|
||||
this.activeListIndex = clickedPathListIndex;
|
||||
this.mapGraphPathToInsight[clickedActiveTraceIndex][clickedPathListIndex].pathByEdge
|
||||
.forEach(pathToHighlight => {
|
||||
pathToHighlight.addClass('highlight-edge');
|
||||
});
|
||||
this.mapGraphPathToInsight[clickedActiveTraceIndex][clickedPathListIndex].pathByNode
|
||||
.forEach(nodeToHighlight => {
|
||||
nodeToHighlight.data('nodeImageUrl', ImgCapsulesGlow[nodeToHighlight.data('level')]);
|
||||
})
|
||||
},
|
||||
clearAllHighlight() {
|
||||
clearAllHighlight() {
|
||||
this.cytoscape[this.processOrBPMN][this.curveType][this.directionType]?.edges().removeClass('highlight-edge');
|
||||
this.cytoscape[this.processOrBPMN][this.curveType][this.directionType]?.nodes().removeClass('highlight-node');
|
||||
this.cytoscape[this.processOrBPMN][this.curveType][this.directionType]?.nodes().forEach(nodeToReset => {
|
||||
@@ -272,28 +260,7 @@ export default defineStore('useMapPathStore', {
|
||||
this.insightWithPath['most_freq_traces'][LIST_INDEX].edges.forEach(edgeToHighlight =>
|
||||
edgeToHighlight.addClass('highlight-edge'));
|
||||
},
|
||||
async highlightMostFrequentPathUnused() {
|
||||
for (let buttonIter = 0; buttonIter < INSIGHTS_FIELDS_AND_LABELS.length; buttonIter++) {
|
||||
// 有可能遇到兩個以上的most frequent paths,然而我們只取一個path點亮
|
||||
if (this.mapGraphPathToInsight[buttonIter]) {
|
||||
const keyLength = Object.keys(this.mapGraphPathToInsight[buttonIter]).length;
|
||||
for (let i = 0; i < keyLength; i++) {
|
||||
if (this.mapGraphPathToInsight[buttonIter][i]?.pathType === 'most_freq_traces') {
|
||||
await this.mapGraphPathToInsight[buttonIter][i].pathByNode.map(async (nodeToHighlight) => {
|
||||
await nodeToHighlight.data('nodeImageUrl', ImgCapsulesGlow[nodeToHighlight.data('level')]);
|
||||
});
|
||||
await this.mapGraphPathToInsight[buttonIter][i].pathByEdge.map(
|
||||
async (edgeToHighlight) => {
|
||||
await edgeToHighlight.addClass('highlight-edge');
|
||||
});
|
||||
return; // 之所以要此時就立刻return是因為要避免第二個以上的most freq path也被點亮
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
setIsBPMNOn(isOn: boolean) {
|
||||
setIsBPMNOn(isOn: boolean) {
|
||||
this.isBPMNOn = isOn;
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user