about function CCArray::replaceObjectAtIndex

hi,
i am a fresh man to cocos2d-x. just study the sample code and framework code.
i found the function CCArray::replaceObjectAtIndex in version 2.1.3

void CCArray::replaceObjectAtIndex
{
ccArrayInsertObjectAtIndex;
ccArrayRemoveObjectAtIndex;
}

it cause twice memmove on the ccArray, why not directly do it :
void CCArray::replaceObjectAtIndex
{
ccArray
arr = data;
CCAssert(arr && arr~~>num > 0 && index < arr~~>num, “Invalid index. Out of bounds”);
if (bReleaseObject)
{
CC_SAFE_RELEASE(arr~~>arr[index]);
}
pObject~~>retain();
arr->arr[index] = pObject;
}*

maybe more efficiency.