coding style refine.

1. remove useless example const
2. more map for a more compact style