From c0a4d9f174158c8c0710887ad7e204cd26b8b6cd Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 22 Apr 2025 20:54:40 +0200 Subject: [PATCH] exa: drop exaGetPixmapSize() Not used by anybody, neither Xserver nor drivers, so no need to keep it around any longer. Signed-off-by: Enrico Weigelt, metux IT consult --- exa/exa.c | 15 --------------- exa/exa.h | 3 --- hw/xfree86/doc/exa-driver.txt | 1 - 3 files changed, 19 deletions(-) diff --git a/exa/exa.c b/exa/exa.c index 5254a12ba..432a18496 100644 --- a/exa/exa.c +++ b/exa/exa.c @@ -82,21 +82,6 @@ exaGetPixmapPitch(PixmapPtr pPix) return pPix->devKind; } -/** - * exaGetPixmapSize() returns the size in bytes of the given pixmap in video - * memory. Only valid when the pixmap is currently in framebuffer. - */ -unsigned long -exaGetPixmapSize(PixmapPtr pPix) -{ - ExaPixmapPrivPtr pExaPixmap; - - pExaPixmap = ExaGetPixmapPriv(pPix); - if (pExaPixmap != NULL) - return pExaPixmap->fb_size; - return 0; -} - /** * exaGetDrawablePixmap() returns a backing pixmap for a given drawable. * diff --git a/exa/exa.h b/exa/exa.h index fba06ca0f..47671d3f8 100644 --- a/exa/exa.h +++ b/exa/exa.h @@ -774,9 +774,6 @@ extern _X_EXPORT unsigned long extern _X_EXPORT unsigned long exaGetPixmapPitch(PixmapPtr pPix); -extern _X_EXPORT unsigned long - exaGetPixmapSize(PixmapPtr pPix); - extern _X_EXPORT void *exaGetPixmapDriverPrivate(PixmapPtr p); /* in exa_offscreen.c */ diff --git a/hw/xfree86/doc/exa-driver.txt b/hw/xfree86/doc/exa-driver.txt index da39d3f91..6dcca284c 100644 --- a/hw/xfree86/doc/exa-driver.txt +++ b/hw/xfree86/doc/exa-driver.txt @@ -27,7 +27,6 @@ static const char *exaSymbols[] = { "exaOffscreenFree", "exaGetPixmapOffset", "exaGetPixmapPitch", - "exaGetPixmapSize", "exaMarkSync", "exaWaitSync", NULL