Australia batsman David Warner says it's sad to see the end of Kevin Pietersen's international career.