[netstack] remove unused function

Test: CQ
Change-Id: I38a9387c1afc25d0f6155736f58dbbfeb1ac053c
1 file changed