cleanup: remove unused currentTime computed, RouterModule import from desktop component
This commit is contained in:
parent
cecca9f90f
commit
d096d20a02
@ -1,7 +1,6 @@
|
||||
import { Component, signal, computed, OnInit, OnDestroy, ViewChild, ElementRef } from '@angular/core';
|
||||
import { Component, signal, computed, OnInit, OnDestroy } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
import { WindowManagerService, type WindowState } from '../../services/window-manager.service';
|
||||
import { ApiService, type Session } from '../../services/api.service';
|
||||
@ -22,7 +21,6 @@ import { BrowserComponent } from '../apps/browser/browser.component';
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
RouterModule,
|
||||
WindowComponent,
|
||||
TaskbarComponent,
|
||||
StartMenuComponent,
|
||||
@ -45,11 +43,6 @@ export class DesktopComponent implements OnInit, OnDestroy {
|
||||
readonly showSessionPicker = signal(false);
|
||||
readonly newSessionLoading = signal(false);
|
||||
|
||||
/** Clock for desktop (separate from taskbar). */
|
||||
readonly currentTime = computed(() => {
|
||||
return new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
|
||||
});
|
||||
|
||||
constructor(
|
||||
public wm: WindowManagerService,
|
||||
private api: ApiService,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user