What about removing OutputSectionFactory::lookup method ?
It is single line and IMO removing will decrease amount
of code without visible hurt.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
How about just defining it inline?
One of the annoyances of the Map interface is the just using [] adds
an entry. Having the Map be private means we only have to look at a
few places to know that we don't accidentally create entries when we
don't want to: the two visible methods are named create and lookup.
Cheers,
Rafael
Comment Actions
Ok. Motivation to keep it private under guard of method call was clear,
I just assumed we will not use [] to have that effect :)
Comment Actions
By "inline", I think it means moving the definition of the function into the class definition, instead of inlining function definition to the places where the function is used.