Skip to content

Commit 93d4e6c

Browse files
committed
clean: remove unused functions
1 parent 1c3f482 commit 93d4e6c

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

resources/app/modules/session/views/session.vue

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -92,25 +92,6 @@
9292
});
9393
}
9494
95-
function showQueryGroup(time) {
96-
return data.showTime.includes(time);
97-
}
98-
99-
function toggleQueryGroup(time) {
100-
if (data.showTime.includes(time)) {
101-
data.showTime = data.showTime.filter(val => val !== time);
102-
return;
103-
}
104-
data.showTime.push(time);
105-
}
106-
107-
function groupTitle(value) {
108-
if (data.listType === "time") {
109-
return new Date(value * 1000).toISOString();
110-
}
111-
return value;
112-
}
113-
11495
function getUniqueValuesByKey(key) {
11596
return [...new Set(flattenedCachedKeys.value.map(val => val[key]))];
11697
}
@@ -144,10 +125,6 @@
144125
return cdata;
145126
}
146127
147-
function showFilterMenu() {
148-
router.push({name: 'session-order-menu'})
149-
}
150-
151128
function close() {
152129
router.push({
153130
name: 'sessions'
@@ -188,41 +165,8 @@
188165
return Object.values(data.sessionData).flat();
189166
});
190167
191-
const totalQueryTime = computed(() => {
192-
if (flattenedCachedKeys.value.length === 0) {
193-
return 0;
194-
}
195-
return flattenedCachedKeys.value.reduce((total, time, index) => {
196-
if (index === 1) {
197-
total = total.queryTime;
198-
}
199-
return total + time.queryTime;
200-
});
201-
})
202-
203-
const totalAmountOfQueries = computed(() => {
204-
flattenedCachedKeys.value.length;
205-
});
206-
207-
const amountOfRoutes = computed( () => {
208-
return getUniqueRoutes.value.length;
209-
});
210-
211-
const getUniqueRoutes = computed( () => {
212-
return getUniqueValuesByKey('url');
213-
})
214-
215-
const getUniqueRawSql = computed( () => {
216-
return getUniqueValuesByKey('rawSql');
217-
})
218168
219-
const getRawQueryList = computed( () => {
220-
return groupValuesByKey('rawSql');
221-
});
222169
223-
const getRouteQueryList= computed( () => {
224-
return groupValuesByKey('url');
225-
});
226170
227171
function sortMenu()
228172
{

0 commit comments

Comments
 (0)