removed unnecesseary code from h5model

Signed-off-by: schlager <zarquon42@gmail.com>