dix: remove dixLookupResource - we don't have any users left.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Eamon Walsh <ewalsh@tycho.nsa.gov> Acked-by: Aaron Plattner <aplattner@nvidia.com>
This commit is contained in:
parent
1e0caf9a2c
commit
9005ec4ce1
|
@ -162,22 +162,4 @@ LookupIDByClass(XID id, RESTYPE classes)
|
|||
return val;
|
||||
}
|
||||
|
||||
/* replaced by dixLookupResourceBy{Type,Class} */
|
||||
_X_EXPORT int
|
||||
dixLookupResource (pointer *result, XID id, RESTYPE rtype,
|
||||
ClientPtr client, Mask mode)
|
||||
{
|
||||
Bool istype = ((rtype & TypeMask) && (rtype != RC_ANY)) || (rtype == RT_NONE);
|
||||
|
||||
static int warn = 1;
|
||||
if (warn > 0 && --warn)
|
||||
ErrorF("Warning: dixLookupResource() "
|
||||
"is deprecated. Please convert your driver/module "
|
||||
"to use dixLookupResourceByType/dixLookupResourceByClass().\n");
|
||||
if (istype)
|
||||
return dixLookupResourceByType (result, id, rtype, client, mode);
|
||||
else
|
||||
return dixLookupResourceByClass (result, id, rtype, client, mode);
|
||||
}
|
||||
|
||||
/* end deprecated functions */
|
||||
|
|
|
@ -257,14 +257,6 @@ extern _X_EXPORT RESTYPE TypeMask;
|
|||
#define X_DEPRECATED
|
||||
#endif
|
||||
|
||||
/* replaced by dixLookupResourceByType or dixLookupResourceByClass */
|
||||
extern int dixLookupResource(
|
||||
pointer *result,
|
||||
XID id,
|
||||
RESTYPE rtype,
|
||||
ClientPtr client,
|
||||
Mask access_mode) X_DEPRECATED;
|
||||
|
||||
/* replaced by dixLookupResourceByType */
|
||||
extern _X_EXPORT pointer SecurityLookupIDByType(
|
||||
ClientPtr client,
|
||||
|
|
Loading…
Reference in New Issue
Block a user