BZ1158818 reomve useless code

excuse me , i find some useless code from my PR.
Now i want to remove it.