Reduce really unnecessary calls to the id() function
Summary:
Premising that the function id() is occasionally useful;
There is no need to wrap every single object creation with id(),
even where there is just one statement.
There is also a parallel patch for Arcanist: D26611.
Ref T15976
Test Plan:
Look with my little eyes that I've not introduced mistakes.
Run the linter. No syntax errors.
Run this grep, to find such simple calls:
grep -ER '= id\(new [a-zA-Z0-9]+\([^(]*?\)\);' src/
Before the change, 67 results.
After the change, 0 results.
Reviewers: O1 Blessed Committers, aklapper
Reviewed By: O1 Blessed Committers, aklapper
Subscribers: aklapper, tobiaswiese, Matthew, Cigaryno
Maniphest Tasks: T15976
Differential Revision: https://we.phorge.it/D26610