Remove unsued code

Signed-off-by: Stefan Marr <git@stefan-marr.de>
unsafeFrameCast is gone

Signed-off-by: Stefan Marr <git@stefan-marr.de>