Remove unneeded vector allocation.