doc: fix tutorial unsafe blocks, r=burningtree.
remove unnecessary code