dix: drop obsolete Swap32Write()

Not used anywhere, neither exported.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-29 17:49:14 +02:00
committed by Enrico Weigelt
parent c9ac063793
commit ae4912f837
2 changed files with 0 additions and 22 deletions

View File

@@ -59,24 +59,6 @@ static void SwapFontInfo(xQueryFontReply * pr);
static void SwapCharInfo(xCharInfo * pInfo);
/**
* Thanks to Jack Palevich for testing and subsequently rewriting all this
*
* \param size size in bytes
*/
void _X_COLD
Swap32Write(ClientPtr pClient, int size, CARD32 *pbuf)
{
size >>= 2;
for (int i = 0; i < size; i++)
/* brackets are mandatory here, because "swapl" macro expands
to several statements */
{
swapl(&pbuf[i]);
}
WriteToClient(pClient, size << 2, pbuf);
}
/**
*
* \param size size in bytes

View File

@@ -28,10 +28,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
void SwapFont(xQueryFontReply * pr, Bool hasGlyphs);
extern void Swap32Write(ClientPtr /* pClient */ ,
int /* size */ ,
CARD32 * /* pbuf */ );
extern void CopySwap32Write(ClientPtr /* pClient */ ,
int /* size */ ,
CARD32 * /* pbuf */ );