remove duplicate code

Change-Id: I98e2bdea162f450b81540a55941ab4a917a9047f
fix build

Change-Id: Ia9cc1f5b5dddfde971e378d85cc6b286d1274442