chore: Remove unused variables from kernel

when I build lean locally, I get a nice and warning-free build
experience with the exception of these two unused variables. They can
probably go?
2 files changed