remove some unused code in chart2

Change-Id: I99afd30ad413b57d27c89421b5010f6d88856496