Following #9494, where they were introduced to ease the transition.
The first commit removes the uses, the second commit removes the wrappers themselves.
One can easily do this after this PR, whereas before, gArgs
didn’t even appear in all the places you’d expect it to and you’d have to use the same kind of complex regexp to catch them all as in the scripted diff script. I agree it doesn’t matter much, but it does make it easier I think.
It could be a long time too until someone starts doing this work, and in the meantime, we can avoid the confusion of how to use it, saving review cycles/time.
They were temporary additions to ease the transition.
-BEGIN VERIFY SCRIPT-
find src/ -name "*.cpp" ! -wholename "src/util.h" ! -wholename "src/util.cpp" | xargs perl -i -pe 's/(?<!\.)(ParseParameters|ReadConfigFile|IsArgSet|(Soft|Force)?(Get|Set)(|Bool|)Arg(s)?)\(/gArgs.\1(/g'
-END VERIFY SCRIPT-
benma
practicalswift
sipa
fanquake
jnewbery
TheBlueMatt
promag
MarcoFalke
ryanofsky
laanwj
jtimon
Labels
Refactoring
Milestone
0.15.0