Remove an unused argument from flushThread