xfree86: Remove vestigial lastScrnFlag

Only the mga XAA code ever set this (hence the compat macro), since XAA
is long gone this can go too.

Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Adam Jackson 2018-08-27 15:02:50 -04:00 committed by Adam Jackson
parent c7414f4d07
commit a2c1260958
3 changed files with 2 additions and 22 deletions

View File

@ -155,8 +155,8 @@ extern _X_EXPORT EntityInfoPtr xf86GetEntityInfo(int entityIndex);
extern _X_EXPORT Bool xf86IsEntityPrimary(int entityIndex);
extern _X_EXPORT ScrnInfoPtr xf86FindScreenForEntity(int entityIndex);
extern _X_EXPORT int xf86GetLastScrnFlag(int entityIndex);
extern _X_EXPORT void xf86SetLastScrnFlag(int entityIndex, int scrnIndex);
#define xf86SetLastScrnFlag(e, s) do { } while (0)
extern _X_EXPORT Bool xf86IsEntityShared(int entityIndex);
extern _X_EXPORT void xf86SetEntityShared(int entityIndex);
extern _X_EXPORT Bool xf86IsEntitySharable(int entityIndex);

View File

@ -553,25 +553,6 @@ xf86PostProbe(void)
" for all framebuffer devices\n");
}
int
xf86GetLastScrnFlag(int entityIndex)
{
if (entityIndex < xf86NumEntities) {
return xf86Entities[entityIndex]->lastScrnFlag;
}
else {
return -1;
}
}
void
xf86SetLastScrnFlag(int entityIndex, int scrnIndex)
{
if (entityIndex < xf86NumEntities) {
xf86Entities[entityIndex]->lastScrnFlag = scrnIndex;
}
}
Bool
xf86IsEntityShared(int entityIndex)
{

View File

@ -51,7 +51,6 @@ typedef struct {
Bool active;
Bool inUse;
BusRec bus;
int lastScrnFlag;
DevUnion *entityPrivates;
int numInstances;
GDevPtr *devices;