[libflow] dead code cleanup