It is used at only place, and mostly trivial.
No functional change, just refactoring.
return modified;
}
-static void context_clear_x11(Context *c) {
- assert(c);
-
- x11_context_clear(&c->x11_from_xorg);
- x11_context_clear(&c->x11_from_vc);
-}
-
void vc_context_clear(VCContext *vc) {
assert(vc);
assert(c);
locale_context_clear(&c->locale_context);
- context_clear_x11(c);
+ x11_context_clear(&c->x11_from_xorg);
+ x11_context_clear(&c->x11_from_vc);
vc_context_clear(&c->vc);
c->locale_cache = sd_bus_message_unref(c->locale_cache);