Reputation: 773
This could be silly but I dont understand why this code is included on the example:
params.remove('action')
params.remove('controller')
params.remove('name')
Because they are not necessary hence freeing the memory or they have special meaning when passed to the report engine?
Upvotes: 1
Views: 26
Reputation: 24776
The reason why they are removed is because they Grails related and not related to the report itself. It's removed to keep the log/debug clean and to avoid any confusion downstream in the report itself.
Notice the debugging/logging in the source code.
It won't hurt anything to put them there, provided your reports know to ignore them or understand that they are provided by Grails.
Upvotes: 1