Remove unused helper function

`setAndFlush` is defined but not used.