xfree86: loader: drop unused LoaderGetABIVersion()
This function isn't called anywhere, neither in xserver nor modules, thus no need to keep it around. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1722>
This commit is contained in:
parent
d8c47a3db6
commit
f3887956ec
|
@ -158,7 +158,6 @@ extern _X_EXPORT void UnloadModule(void *);
|
|||
extern _X_EXPORT void *LoaderSymbol(const char *);
|
||||
extern _X_EXPORT void *LoaderSymbolFromModule(void *, const char *);
|
||||
extern _X_EXPORT void LoaderErrorMsg(const char *, const char *, int, int);
|
||||
extern _X_EXPORT int LoaderGetABIVersion(const char *abiclass);
|
||||
|
||||
typedef void *(*ModuleSetupProc) (void *, void *, int *, int *);
|
||||
typedef void (*ModuleTearDownProc) (void *);
|
||||
|
|
|
@ -153,27 +153,3 @@ LoaderSetOptions(unsigned long opts)
|
|||
{
|
||||
LoaderOptions |= opts;
|
||||
}
|
||||
|
||||
int
|
||||
LoaderGetABIVersion(const char *abiclass)
|
||||
{
|
||||
struct {
|
||||
const char *name;
|
||||
int version;
|
||||
} classes[] = {
|
||||
{ABI_CLASS_ANSIC, LoaderVersionInfo.ansicVersion},
|
||||
{ABI_CLASS_VIDEODRV, LoaderVersionInfo.videodrvVersion},
|
||||
{ABI_CLASS_XINPUT, LoaderVersionInfo.xinputVersion},
|
||||
{ABI_CLASS_EXTENSION, LoaderVersionInfo.extensionVersion},
|
||||
{NULL, 0}
|
||||
};
|
||||
int i;
|
||||
|
||||
for (i = 0; classes[i].name; i++) {
|
||||
if (!strcmp(classes[i].name, abiclass)) {
|
||||
return classes[i].version;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue