Netmap dead code removal