diff --git a/dix/swaprep.c b/dix/swaprep.c index dd198bad2..fea8db88f 100644 --- a/dix/swaprep.c +++ b/dix/swaprep.c @@ -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 diff --git a/include/swaprep.h b/include/swaprep.h index ff47c0724..6d161efa0 100644 --- a/include/swaprep.h +++ b/include/swaprep.h @@ -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 */ );