Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Sep 13, 2024
1 parent 5b071c3 commit 1de3c36
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/effect/src/internal/cause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1335,19 +1335,6 @@ const propagateAnnotations = <E>(self: Cause.Cause<E>, context: Context.Context<
}
}

/** @internal */
export const originalAnnotation = <E, I, S>(self: E, tag: Context.Tag<I, S>, fallback: S): S => {
const context = originalAnnotations(self)
if (context === undefined || !context.unsafeMap.has(tag.key)) {
return fallback
}
return context.unsafeMap.get(tag.key) as S
}

/** @internal */
export const addOriginalAnnotation = <E, I, S>(self: E, tag: Context.Tag<I, S>, value: S): E =>
addOriginalAnnotations(self, Context.make(tag, value))

/** @internal */
export const originalInstance = <E>(self: E): E => {
if (hasProperty(self, originalInstanceSymbol)) {
Expand Down

0 comments on commit 1de3c36

Please sign in to comment.