Remove unused params being passed to Soy templates

Soy is going to disallow passing params that are unused in the called template and its dependencies. This CL removes these unused params from the call sites.

Passing an unused param might indicate a bug such as having a typo in an optional parameter. Please review this CL carefully and edit the code in Critique if this is the case.

More information: []
Tested:
    TAP --sample for global presubmit queue
    []

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=180571605
This commit is contained in:
jakubvrana 2018-01-02 11:37:13 -08:00 committed by jianglai
parent 3f7cd00882
commit 0aab48eb9f

View file

@ -93,13 +93,11 @@
{call .postalInfo data="all"}
{param localized: index($pi) == 1 /}
{param item: $pi/}
{param itemPrefix: 'contact:' /}
{param namePrefix: 'contact:postalInfo[' + index($pi) + '].contact:' /}
{/call}
{/foreach}
{else}
{call .postalInfo data="all"}
{param prefix: 'contact:' /}
{param namePrefix: 'contact:postalInfo[0].contact:' /}
{/call}
{/if}