Remove duplicate function

Change-Id: I6bd4515b7fac40b036a65a3db601593284c889d8
Merge "Remove duplicate function" into frontend-rewrite