Revert "Allow overriding display requirement for mainloop"

It is unclear what should this parameter help with and it doesn't seem
that it is somewhere referenced (wiki, GitHub issues).

This reverts commit 2e4fac60b8.
This commit is contained in:
Martin Pulec
2023-03-27 12:34:47 +02:00
parent 3f630e5aca
commit dd0c38b01d

View File

@@ -189,18 +189,12 @@ void display_done(struct display *d)
free(d);
}
ADD_TO_PARAM("override-mainloop-req", "* override-mainloop-req\n"
" Override display requirement for mainloop.\n");
/**
* Returns true if display has a run routine that needs to be run in a main thread
*/
bool display_needs_mainloop(struct display *d)
{
assert(d->magic == DISPLAY_MAGIC);
if (get_commandline_param("override-mainloop-req") != NULL) {
return true;
}
if (d->funcs->needs_mainloop == DISPLAY_NEEDS_MAINLOOP) {
return true;
}