Cleanup
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import log from "@/base/log";
|
||||
import { EnteFile } from "@/media/file";
|
||||
import { FileType } from "@/media/file-type";
|
||||
import type { GalleryBarMode } from "@/new/photos/components/gallery/reducer";
|
||||
import { TRASH_SECTION } from "@/new/photos/services/collection";
|
||||
import {
|
||||
downloadManager,
|
||||
type LivePhotoSourceURL,
|
||||
type SourceURLs,
|
||||
} from "@/gallery/services/download";
|
||||
import { EnteFile } from "@/media/file";
|
||||
import { FileType } from "@/media/file-type";
|
||||
import type { GalleryBarMode } from "@/new/photos/components/gallery/reducer";
|
||||
import { TRASH_SECTION } from "@/new/photos/services/collection";
|
||||
import { PHOTOS_PAGES } from "@ente/shared/constants/pages";
|
||||
import useMemoSingleThreaded from "@ente/shared/hooks/useMemoSingleThreaded";
|
||||
import { styled } from "@mui/material";
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
import { wait } from "@/utils/promise";
|
||||
@@ -107,7 +107,6 @@ export const withTimeout = async <T>(promise: Promise<T>, ms: number) => {
|
||||
return Promise.race([promiseAndCancelTimeout(), rejectOnTimeout]);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Retry a async operation like a HTTP request 3 (+ 1 original) times with
|
||||
* exponential backoff.
|
||||
|
||||
Reference in New Issue
Block a user