diff --git a/mozilla/widget/src/windows/nsClipboard.cpp b/mozilla/widget/src/windows/nsClipboard.cpp index 7cf3a1845d9..b21ce63bb1d 100644 --- a/mozilla/widget/src/windows/nsClipboard.cpp +++ b/mozilla/widget/src/windows/nsClipboard.cpp @@ -858,35 +858,6 @@ nsClipboard::GetNativeClipboardData ( nsITransferable * aTransferable, PRInt32 a } -//------------------------------------------------------------------------- -static void PlaceDataOnClipboard(PRUint32 aFormat, char * aData, int aLength) -{ - HGLOBAL hGlobalMemory; - PSTR pGlobalMemory; - - PRInt32 size = aLength + 1; - - if (aLength) { - // Copy text to Global Memory Area - hGlobalMemory = (HGLOBAL)::GlobalAlloc(GHND, size); - if (hGlobalMemory != NULL) { - pGlobalMemory = (PSTR) ::GlobalLock(hGlobalMemory); - - int i; - - char * s = aData; - PRInt32 len = aLength; - for (i=0;i< len;i++) { - *pGlobalMemory++ = *s++; - } - - // Put data on Clipboard - ::GlobalUnlock(hGlobalMemory); - ::SetClipboardData(aFormat, hGlobalMemory); - } - } -} - //------------------------------------------------------------------------- NS_IMETHODIMP nsClipboard::ForceDataToClipboard ( PRInt32 aWhichClipboard ) {