Fix last two Dialyzer errors by removing dead code