Skip to content

Commit a2c8b16

Browse files
refactor(mobile): remove unused cloud pending-status mapper
1 parent 25cbcd6 commit a2c8b16

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

‎apps/mobile/src/features/cloud/linkEnvironment.test.ts‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { MobilePreferencesStore } from "../../persistence/mobile-preferences";
1111
import { MobileStorage } from "../../persistence/mobile-storage";
1212

1313
import {
14-
cloudEnvironmentsPendingStatus,
1514
linkEnvironmentToCloud,
1615
linkEnvironmentToCloudWithPreference,
1716
connectCloudEnvironment,
@@ -194,16 +193,6 @@ describe("mobile cloud link environment client", () => {
194193
loadPreferences.mockClear();
195194
});
196195

197-
it("makes linked environments visible while their status is still loading", () => {
198-
expect(cloudEnvironmentsPendingStatus([listedEnvironment("env-1")])).toMatchObject([
199-
{
200-
environment: { environmentId: "env-1", label: "Desktop" },
201-
status: null,
202-
statusError: "Checking status...",
203-
},
204-
]);
205-
});
206-
207196
it.effect("decodes relay environment list responses before returning records", () =>
208197
Effect.gen(function* () {
209198
vi.stubGlobal(

‎apps/mobile/src/features/cloud/linkEnvironment.ts‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -397,16 +397,6 @@ export function getCloudEnvironmentStatus(input: {
397397
});
398398
}
399399

400-
export function cloudEnvironmentsPendingStatus(
401-
environments: ReadonlyArray<RelayClientEnvironmentRecord>,
402-
): ReadonlyArray<CloudEnvironmentRecordWithStatus> {
403-
return environments.map((environment) => ({
404-
environment,
405-
status: null,
406-
statusError: "Checking status...",
407-
}));
408-
}
409-
410400
export function loadCloudEnvironmentStatuses(input: {
411401
readonly clerkToken: string;
412402
readonly environments: ReadonlyArray<RelayClientEnvironmentRecord>;

0 commit comments

Comments
 (0)