Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Gone from desktop

Manav Rathi8400620488f4
diff --git a/desktop/src/preload.ts b/desktop/src/preload.ts
index 52fe068e47..ecc800db3c 100644
--- a/desktop/src/preload.ts
+++ b/desktop/src/preload.ts
@@ -44,7 +44,6 @@ import { contextBridge, ipcRenderer, webUtils } from "electron/renderer";
import type {
AppUpdate,
CollectionMapping,
- ElectronFile,
FolderWatch,
PendingUploads,
ZipItem,
@@ -173,21 +172,6 @@ const detectFaces = (input: Float32Array): Promise<Float32Array> =>
const faceEmbedding = (input: Float32Array): Promise<Float32Array> =>
ipcRenderer.invoke("faceEmbedding", input);
-// - File selection
-
-// TODO: Deprecated - use dialogs on the renderer process itself
-
-const showUploadFilesDialog = (): Promise<ElectronFile[]> =>
- ipcRenderer.invoke("showUploadFilesDialog");
-
-const showUploadDirsDialog = (): Promise<ElectronFile[]> =>
- ipcRenderer.invoke("showUploadDirsDialog");
-
-const showUploadZipDialog = (): Promise<{
- zipPaths: string[];
- files: ElectronFile[];
-}> => ipcRenderer.invoke("showUploadZipDialog");
-
// - Watch
const watchGet = (): Promise<FolderWatch[]> => ipcRenderer.invoke("watchGet");
diff --git a/desktop/src/types/ipc.ts b/desktop/src/types/ipc.ts
index 6e47b7a3a6..c02ed17260 100644
--- a/desktop/src/types/ipc.ts
+++ b/desktop/src/types/ipc.ts
@@ -42,25 +42,3 @@ export interface PendingUploads {
export const CustomErrorMessage = {
NotAvailable: "This feature in not available on the current OS/arch",
};
-
-/**
- * Deprecated - Use File + webUtils.getPathForFile instead
- *
- * Electron used to augment the standard web
- * [File](https://developer.mozilla.org/en-US/docs/Web/API/File) object with an
- * additional `path` property. This is now deprecated, and will be removed in a
- * future release.
- * https://www.electronjs.org/docs/latest/api/file-object
- *
- * The alternative to the `path` property is to use `webUtils.getPathForFile`
- * https://www.electronjs.org/docs/latest/api/web-utils
- */
-export interface ElectronFile {
- name: string;
- path: string;
- size: number;
- lastModified: number;
- stream: () => Promise<ReadableStream<Uint8Array>>;
- blob: () => Promise<Blob>;
- arrayBuffer: () => Promise<Uint8Array>;
-}