Remove unused helper function

`setAndFlush` is defined but not used.
Merge pull request #2588 from tricknotes/remove-unused

Remove unused helper function