Remove unused private method check()

Change-Id: I29381892be9966b92b99cb3b021cc5a9a4be8a80
Merge "Remove unused private method check()"