* commit '3e37a2f3ae3e3a777bf479a6562063922a7e44c6': Remove uncalled function -- java counterpart of the fix for bug:4183801