be extra paranoid about dinput stale pointers

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
remove dead code

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>