Removed unused dname functions.

Change-Id: I9e44cc8508575d21e699eb27acc151da4a3abc4e