Skip to content

Commit 3a85efb

Browse files
committed
refactor(desktop): remove unused electron runtime APIs
1 parent 126954f commit 3a85efb

4 files changed

Lines changed: 0 additions & 16 deletions

File tree

desktop/lib/backend-manager.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ class BackendManager {
7474
return this.backendUrl;
7575
}
7676

77-
getBackendTimeoutMs() {
78-
return this.backendTimeoutMs;
79-
}
80-
8177
getRootDir() {
8278
return (
8379
process.env.ASTRBOT_ROOT ||
@@ -98,14 +94,6 @@ class BackendManager {
9894
return this.backendStartupFailureReason;
9995
}
10096

101-
isSpawning() {
102-
return this.backendSpawning;
103-
}
104-
105-
isRestarting() {
106-
return this.backendRestarting;
107-
}
108-
10997
resolveBackendRoot() {
11098
if (!this.app.isPackaged) {
11199
return null;

desktop/lib/common.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ function formatLogTimestamp(date = new Date()) {
100100
}
101101

102102
module.exports = {
103-
LOG_ROTATION_DEFAULT_BACKUP_COUNT,
104-
LOG_ROTATION_DEFAULT_MAX_MB,
105103
delay,
106104
ensureDir,
107105
formatLogTimestamp,

desktop/lib/electron-logger.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ function createElectronLogger({ app, getRootDir }) {
4242
}
4343

4444
return {
45-
getElectronLogPath,
4645
logElectron,
4746
flushElectron,
4847
};

desktop/lib/locale-service.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,5 +170,4 @@ function createLocaleService({ app, getRootDir }) {
170170

171171
module.exports = {
172172
createLocaleService,
173-
normalizeLocale,
174173
};

0 commit comments

Comments
 (0)