A warning about unused variables doesn't mean get_ue() isn't necessary! get_ue() consumes bits from the bitstream, and if it gets removed these bits will be used later in a different context where they lead to totally wrong values.

But more important, **this function needs to get implemented and then these variables will be used**, so they have to stay.