Skip to content

Commit

Permalink
Update system.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Nov 12, 2024
1 parent 896f6a5 commit e8db049
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions packages/reactivity/src/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,6 @@ export namespace Link {
export namespace Dependency {
const system = System

/**
* @deprecated Use `startTrack` instead.
*/
export function linkSubscriber(dep: Dependency, sub: Subscriber): void {
return link(dep, sub)
}

export function link(dep: Dependency, sub: Subscriber): void {
const depsTail = sub.depsTail
const old = depsTail !== undefined ? depsTail.nextDep : sub.deps
Expand Down Expand Up @@ -402,25 +395,6 @@ export namespace Subscriber {
} while (true)
}

/**
* @deprecated Use `startTrack` instead.
*/
export function startTrackDependencies(
sub: Subscriber,
): Subscriber | undefined {
return startTrack(sub)
}

/**
* @deprecated Use `endTrack` instead.
*/
export function endTrackDependencies(
sub: Subscriber,
prevSub: Subscriber | undefined,
): void {
return endTrack(sub, prevSub)
}

export function startTrack(sub: Subscriber): Subscriber | undefined {
const newTrackId = system.lastTrackId + 1
const prevSub = system.activeSub
Expand Down

0 comments on commit e8db049

Please sign in to comment.