Remove unused variables from `readLeaf`.