DPMS: Remove unused DPMSGet()

This commit is contained in:
Adam Jackson 2009-04-03 13:44:37 -04:00
parent d52fddefae
commit 2d0a4fff79
5 changed files with 0 additions and 36 deletions

View File

@ -1,4 +1,3 @@
/* Prototypes for functions that the DDX must provide */
#ifdef HAVE_DIX_CONFIG_H
@ -11,7 +10,6 @@
#include "dixstruct.h"
int DPMSSet(ClientPtr client, int level);
int DPMSGet(int *plevel);
Bool DPMSSupported(void);
#endif

View File

@ -39,11 +39,6 @@ Bool DPMSSupported(void)
return FALSE;
}
int DPMSGet(int *plevel)
{
return -1;
}
int DPMSSet(ClientPtr client, int level)
{
return Success;

View File

@ -1371,12 +1371,6 @@ DPMSSet(ClientPtr client, int level)
{
}
int
DPMSGet (int *level)
{
return -1;
}
Bool
DPMSSupported (void)
{

View File

@ -1,4 +1,3 @@
/*
* Copyright (c) 1997-2003 by The XFree86 Project, Inc.
*
@ -175,7 +174,6 @@ extern _X_EXPORT DisplayModePtr xf86CVTMode(int HDisplay, int VDisplay, float VR
extern _X_EXPORT Bool xf86DPMSInit(ScreenPtr pScreen, DPMSSetProcPtr set, int flags);
#ifdef DPMSExtension
extern _X_EXPORT int DPMSGet(int *level);
extern _X_EXPORT int DPMSSet(ClientPtr client, int level);
extern _X_EXPORT Bool DPMSSupported(void);
#endif

View File

@ -198,25 +198,4 @@ DPMSSupported(void)
return FALSE;
}
/*
* DPMSGet --
* Device dependent DPMS mode getting hook. This returns the current
* DPMS mode, or -1 if DPMS is not supported.
*
* This should hook in to the appropriate driver-level function, which
* will be added to the ScrnInfoRec.
*
* NOTES:
* 1. the calling interface should be changed to specify which
* screen to check.
* 2. It isn't clear that this function is ever used or what it should
* return.
*/
int
DPMSGet(int *level)
{
return DPMSPowerLevel;
}
#endif /* DPMSExtension */