ninja-simplify & remove dead allocation