fix non Mac build

Change-Id: I88df76fc1757b8372cd319ae1ecd7976b01554a1
remove unused method

Change-Id: I17d3e3fa4671d0004e2d7918ea3bcad1a7bcd2b5