Yeah that was essentially what I was referring to (referring to your edit).
I generally dislike stuff like (crappy example incoming):
void do_stuff(int count, bool cond) {
function1(count);
function2(b);
function3();
}
void function1(int count) {
for (var i = 0; i < count; i++) {
...
}
}
void function2(bool cond) {
if (cond) { ... }
else { ... }
}
void function3() {
...
}
I'm not a fan of this kind of code fragmentation.
If all those actions were related and it could have been just one thing, retaining a lot more context, then it should be one function imo.
If by not splitting it it became massive with various disconnected code blocks, sure, but otherwise I'd much prefer being able to read everything together.
If splitting the functions required producing side effects to maintain the same functionality, then that's even worse.