Eliminate the unused WINGs function WMGetSubdataWithRange.

This commit is contained in:
2025-10-23 14:46:56 -04:00
parent dea8c36cd5
commit 9d07e2d3d8
2 changed files with 0 additions and 18 deletions
-2
View File
@@ -621,8 +621,6 @@ void WMGetDataBytesWithLength(WMData *aData, void *buffer, unsigned length);
void WMGetDataBytesWithRange(WMData *aData, void *buffer, WMRange aRange);
WMData* WMGetSubdataWithRange(WMData *aData, WMRange aRange);
/* Testing data */
Bool WMIsDataEqualToData(WMData *aData, WMData *anotherData);
-16
View File
@@ -195,22 +195,6 @@ void WMGetDataBytesWithRange(WMData * aData, void *buffer, WMRange aRange)
memcpy(buffer, (unsigned char *)aData->bytes + aRange.position, aRange.count);
}
WMData *WMGetSubdataWithRange(WMData * aData, WMRange aRange)
{
void *buffer;
WMData *newData;
if (aRange.count <= 0)
return WMCreateDataWithCapacity(0);
buffer = wmalloc(aRange.count);
WMGetDataBytesWithRange(aData, buffer, aRange);
newData = WMCreateDataWithBytesNoCopy(buffer, aRange.count, wfree);
newData->format = aData->format;
return newData;
}
/* Testing data */
Bool WMIsDataEqualToData(WMData * aData, WMData * anotherData)