Eliminate the unused WINGs function WMCreatePLDataWithBytesNoCopy.
This commit is contained in:
@@ -756,10 +756,6 @@ WMPropList* WMCreatePLData(WMData *data);
|
||||
|
||||
WMPropList* WMCreatePLDataWithBytes(const unsigned char *bytes, unsigned int length);
|
||||
|
||||
WMPropList* WMCreatePLDataWithBytesNoCopy(unsigned char *bytes,
|
||||
unsigned int length,
|
||||
WMFreeDataProc *destructor);
|
||||
|
||||
WMPropList* WMCreatePLArray(WMPropList *elem, ...);
|
||||
|
||||
WMPropList* WMCreatePLDictionary(WMPropList *key, WMPropList *value, ...);
|
||||
|
||||
@@ -942,20 +942,6 @@ WMPropList *WMCreatePLDataWithBytes(const unsigned char *bytes, unsigned int len
|
||||
return plist;
|
||||
}
|
||||
|
||||
WMPropList *WMCreatePLDataWithBytesNoCopy(unsigned char *bytes, unsigned int length, WMFreeDataProc * destructor)
|
||||
{
|
||||
WMPropList *plist;
|
||||
|
||||
wassertrv(bytes != NULL, NULL);
|
||||
|
||||
plist = (WMPropList *) wmalloc(sizeof(W_PropList));
|
||||
plist->type = WPLData;
|
||||
plist->d.data = WMCreateDataWithBytesNoCopy(bytes, length, destructor);
|
||||
plist->retainCount = 1;
|
||||
|
||||
return plist;
|
||||
}
|
||||
|
||||
WMPropList *WMCreatePLArray(WMPropList * elem, ...)
|
||||
{
|
||||
WMPropList *plist, *nelem;
|
||||
|
||||
Reference in New Issue
Block a user