Hello,
I noticed in this patch, exactly the same lines are added in all the functions; wouldn't it be better to add a(n) (inline) function isComponentEnabled(rec,package) to reduce the repetition?
HTH, Joris
On Thu, 2010-12-09 at 07:52 -0800, Joris Huizer wrote:
I noticed in this patch, exactly the same lines are added in all the functions; wouldn't it be better to add a(n) (inline) function isComponentEnabled(rec,package) to reduce the repetition?
I'm not opposed to consolidating the check in a function, but note that there's a trace in there that reveals the action being run (through the function name), and this information should not get lost.