Remover superfluous write statement