mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-19 05:55:34 +09:00
refactor: remove dead code (#3337)
This commit is contained in:
1 parent
a19002652b
commit
93d1f8af46
1527 files changed
+21170
-73846
No files matched your search
@@ -42,7 +42,6 @@ import type {
|
||||
InstanceAgePolicy,
|
||||
InstanceAppPublic,
|
||||
InstanceCommunity,
|
||||
InstanceDiscoveryResponse,
|
||||
InstanceFeatures,
|
||||
InstanceRegistration,
|
||||
InstanceServices,
|
||||
@@ -58,19 +57,7 @@ export {
|
||||
runtimeConfigSnapshotsAreSameInstance,
|
||||
runtimeInstanceKey,
|
||||
} from '@app/features/app/state/InstanceSnapshotStore';
|
||||
export type {
|
||||
GifProvider,
|
||||
GifProviderInfo,
|
||||
InstanceCommunity,
|
||||
InstanceDiscoveryResponse,
|
||||
InstanceFeatures,
|
||||
InstanceRegistration,
|
||||
InstanceServices,
|
||||
InstanceSnapshotResolution,
|
||||
InstanceSnapshotResolveRequest,
|
||||
InstanceSsoConfig,
|
||||
RuntimeConfigSnapshot,
|
||||
};
|
||||
export type {InstanceSsoConfig, RuntimeConfigSnapshot};
|
||||
|
||||
export interface ApplyRuntimeConfigSnapshotRequest {
|
||||
snapshot: RuntimeConfigSnapshot;
|
||||
|
||||
@@ -21,23 +21,17 @@ import {
|
||||
createUpdaterMachineSnapshot,
|
||||
getUpdaterDisplayVersion,
|
||||
getUpdaterMachineStateValue,
|
||||
getUpdaterUpdateType,
|
||||
hasManualNativeDownload,
|
||||
type NativeUpdateInfo,
|
||||
transitionUpdaterMachineSnapshot,
|
||||
type UpdateInfo,
|
||||
type UpdaterMachineEvent,
|
||||
type UpdaterMachineSnapshot,
|
||||
type UpdaterState,
|
||||
type UpdateType,
|
||||
type WebUpdateInfo,
|
||||
} from '@app/features/updater/state/UpdaterStateMachine';
|
||||
import {buildLinuxManualUpdateOptions} from '@app/features/updater/utils/LinuxManualUpdateOptions';
|
||||
import type {UpdaterEvent as NativeUpdaterEvent} from '@app/types/electron.d';
|
||||
import {makeAutoObservable, runInAction} from 'mobx';
|
||||
|
||||
export type {NativeUpdateInfo, UpdateInfo, UpdaterState, UpdateType, WebUpdateInfo};
|
||||
|
||||
const logger = new Logger('Updater');
|
||||
const CHECK_INTERVAL_MS = 5 * 60 * 1000;
|
||||
const MIN_CHECK_INTERVAL_MS = 60 * 1000;
|
||||
@@ -152,10 +146,6 @@ class Updater {
|
||||
initializeStore(this, () => this.bootstrap());
|
||||
}
|
||||
|
||||
get updateType(): UpdateType {
|
||||
return getUpdaterUpdateType(this.snapshot);
|
||||
}
|
||||
|
||||
get updateInfo(): UpdateInfo {
|
||||
return this.snapshot.context.updateInfo;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user