Skip to content

Commit e50df67

Browse files
committed
Remove unused re-export of dedupeRemoteBranchesWithLocalMatches from BranchToolbar.logic.ts
Deduplication now happens server-side in GitCore.ts, so the re-export from BranchToolbar.logic.ts is dead code. The test file now imports directly from @t3tools/shared/git instead.
1 parent ee55732 commit e50df67

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

apps/web/src/components/BranchToolbar.logic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { GitBranch } from "@t3tools/contracts";
22
import { describe, expect, it } from "vitest";
3+
import { dedupeRemoteBranchesWithLocalMatches } from "@t3tools/shared/git";
34
import {
4-
dedupeRemoteBranchesWithLocalMatches,
55
deriveLocalBranchNameFromRemoteRef,
66
resolveBranchSelectionTarget,
77
resolveDraftEnvModeAfterBranchChange,

apps/web/src/components/BranchToolbar.logic.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import type { GitBranch } from "@t3tools/contracts";
22
import { Schema } from "effect";
3-
export {
4-
dedupeRemoteBranchesWithLocalMatches,
5-
deriveLocalBranchNameFromRemoteRef,
6-
} from "@t3tools/shared/git";
3+
export { deriveLocalBranchNameFromRemoteRef } from "@t3tools/shared/git";
74

85
export const EnvMode = Schema.Literals(["local", "worktree"]);
96
export type EnvMode = typeof EnvMode.Type;

0 commit comments

Comments
 (0)