@@ -23,7 +23,7 @@ import DraftManager from './managers/draft-manager';
23
23
import SettingsManager from './managers/settings-manager' ;
24
24
import IPCHandlers from './handlers/ipc-handlers' ;
25
25
import { logger , ensureDir } from './utils/utils' ;
26
- import type { AppStats , HistoryStats , WindowData , DraftStats } from './types' ;
26
+ import type { WindowData } from './types' ;
27
27
28
28
class PromptLineApp {
29
29
private windowManager : WindowManager | null = null ;
@@ -318,31 +318,6 @@ class PromptLineApp {
318
318
}
319
319
}
320
320
321
- getAppStats ( ) : AppStats {
322
- const defaultDraftStats : DraftStats = {
323
- hasData : false ,
324
- length : 0 ,
325
- lastSaved : null ,
326
- autoSaveEnabled : false
327
- } ;
328
-
329
- const draftStats = this . draftManager ? this . draftManager . getDraftStats ( ) : defaultDraftStats ;
330
-
331
- return {
332
- isInitialized : this . isInitialized ,
333
- historyStats : this . historyManager ? this . historyManager . getHistoryStats ( ) : { } as HistoryStats ,
334
- draftStats : {
335
- hasData : 'hasContent' in draftStats ? draftStats . hasContent || false : false ,
336
- length : draftStats . length || 0 ,
337
- lastSaved : null ,
338
- autoSaveEnabled : false
339
- } ,
340
- windowVisible : this . windowManager ? this . windowManager . isVisible ( ) : false ,
341
- platform : process . platform ,
342
- version : config . app . version
343
- } ;
344
- }
345
-
346
321
private async cleanup ( ) : Promise < void > {
347
322
try {
348
323
logger . info ( 'Cleaning up application resources...' ) ;
0 commit comments