Remove duplicate code

Remove duplicate code
Merge pull request #1153 from WanderWang/develop

Remove duplicate code in CCdomNode