sink_buffer: remove unused variables