Skip to content

Commit

Permalink
runtime: remove unused prev field of semaNode
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jan 1, 2025
1 parent 1d74d45 commit 1ce1de4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions std/runtime/sema.jule
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ struct semaNode {
sema: *u32
tree: &semaLeaf // Root of tree of the waiters.
next: &semaNode
prev: &semaNode
}

const semaRootSize = fmutexSize + sptrSize + 32 // +32 for u32
Expand Down Expand Up @@ -82,7 +81,6 @@ impl semaRoot {
if t.tree == nil {
// The tree is nil of t, put sn here.
// Sema have no waiters, may be out of use.
sn.prev = last
last.next = sn
ret
}
Expand Down

0 comments on commit 1ce1de4

Please sign in to comment.