refactor(control): remove unnecessary logging

This commit is contained in:
E44
2026-01-04 23:27:54 +01:00
parent 2367dc0c9e
commit b775fae9c0
2 changed files with 0 additions and 12 deletions
@@ -1,4 +1,3 @@
import { dev } from '$app/environment';
import { db } from './files_display.db';
import { get_display_by_id } from './stores/displays';
import {
@@ -118,10 +117,6 @@ async function start_task_loop() {
case 'sync':
break;
}
if (dev) {
console.debug('AKTUELL IN TASKS', tasks.length);
}
tasks.shift(); // Remove current_task from tasks
}
}
@@ -5,7 +5,6 @@ import { get_uuid, image_content_hash } from '../utils';
import { get_screenshot } from '../api_handler';
import { delete_and_deselect_unique_files_from_display } from './files';
import { db } from '../files_display.db';
import { dev } from '$app/environment';
export async function is_display_name_taken(name: string): Promise<boolean> {
const exists = await db.displays.where('name').equals(name).first();
@@ -24,15 +23,9 @@ export async function add_display(
let group_id: string;
if (group) {
group_id = group.id;
if (dev) {
console.debug('DISPLAYGROUP WURDE NICHT ERSTELLT');
}
} else {
group_id = get_uuid();
await db.display_groups.put({ id: group_id, position: 0 });
if (dev) {
console.info('DISPLAYGROUP WURDE ERSTELLT');
}
}
const element_count_in_group = (await db.displays.where('group_id').equals(group_id).toArray())
.length;