Unused X11 code and consider removing MOZ_WIDGET_GDK
Categories
(Toolkit :: Startup and Profile System, task, P5)
Tracking
()
People
(Reporter: jya, Unassigned)
References
Details
In bug 1278282 the macro MOZ_WIDGET_GTK got a different meaning.
This lead to some now unused code like this:
#ifdef MOZ_X11
void XRE_InstallX11ErrorHandler() {
ifdef MOZ_WIDGET_GTK
InstallGdkErrorHandler();
else
InstallX11ErrorHandler();
endif
}
#endif
Now when MOZ_X11 is set, MOZ_WIDGET_GTK is always set. We can never be in a condition where it's false. As such, in the example above, InstallX11ErrorHandler(); will never be called.
This code should be removed.
Additionally, we should consider removing the redundant MOZ_X11 / MOZ_WIDGET_GTK
Comment 1•6 years ago
•
|
||
Just to mention it: There are cases where MOZ_WIDGET_GTK matters to express "Linux + FreeBSD, but not Android": https://hg.mozilla.org/mozilla-central/rev/139558138e3e
Updated•6 years ago
|
Comment 2•6 years ago
|
||
This was the change that led to the path that is now never compiled.
https://hg.mozilla.org/mozilla-central/rev/07457a9823d374c3ef19b4034c6f56cc6d80bf8d#l5.10
Updated•6 years ago
|
Updated•2 years ago
|
Description
•