xfree86: Remove unused xf86GetServerName()

Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2018-08-21 15:09:03 -04:00 committed by Adam Jackson
parent a41ccaa085
commit 60ec8eadc3
5 changed files with 0 additions and 23 deletions

View File

@ -287,8 +287,6 @@ extern _X_EXPORT Gamma
xf86GetGamma(void); xf86GetGamma(void);
extern _X_EXPORT Bool extern _X_EXPORT Bool
xf86GetFlipPixels(void); xf86GetFlipPixels(void);
extern _X_EXPORT const char *
xf86GetServerName(void);
extern _X_EXPORT Bool extern _X_EXPORT Bool
xf86ServerIsExiting(void); xf86ServerIsExiting(void);
extern _X_EXPORT Bool extern _X_EXPORT Bool

View File

@ -168,7 +168,6 @@ const char *xf86VisualNames[] = {
}; };
/* Parameters set only from the command line */ /* Parameters set only from the command line */
const char *xf86ServerName = "no-name";
Bool xf86fpFlag = FALSE; Bool xf86fpFlag = FALSE;
Bool xf86sFlag = FALSE; Bool xf86sFlag = FALSE;
Bool xf86bsEnableFlag = FALSE; Bool xf86bsEnableFlag = FALSE;

View File

@ -1404,12 +1404,6 @@ xf86GetFlipPixels(void)
return xf86FlipPixels; return xf86FlipPixels;
} }
const char *
xf86GetServerName(void)
{
return xf86ServerName;
}
Bool Bool
xf86ServerIsExiting(void) xf86ServerIsExiting(void)
{ {

View File

@ -330,11 +330,6 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char **argv)
config_pre_init(); config_pre_init();
if (serverGeneration == 1) { if (serverGeneration == 1) {
if ((xf86ServerName = strrchr(argv[0], '/')) != 0)
xf86ServerName++;
else
xf86ServerName = argv[0];
xf86PrintBanner(); xf86PrintBanner();
LogPrintMarkers(); LogPrintMarkers();
if (xf86LogFile) { if (xf86LogFile) {

View File

@ -1905,15 +1905,6 @@ functions:
</para></blockquote> </para></blockquote>
<blockquote><para>
<programlisting>
const char *xf86GetServerName();
</programlisting>
<blockquote><para>
Returns the name of the X server from the command line.
</para></blockquote>
</para></blockquote>
</sect2> </sect2>
<sect2> <sect2>