remove some dead code from repl_block.cpp and repl_block.h