refactor: remove the unnecessary function.
This commit is contained in:
parent
e7d58625b9
commit
9c33d10ad9
|
@ -217,8 +217,6 @@ int32_t blockDataSort_rv(SSDataBlock* pDataBlock, SArray* pOrderInfo, bool nullF
|
|||
|
||||
int32_t colInfoDataEnsureCapacity(SColumnInfoData* pColumn, uint32_t numOfRows);
|
||||
int32_t blockDataEnsureCapacity(SSDataBlock* pDataBlock, uint32_t numOfRows);
|
||||
void colInfoDataMemset(SColumnInfoData* pColumn, uint32_t numOfRows);
|
||||
|
||||
|
||||
void colInfoDataCleanup(SColumnInfoData* pColumn, uint32_t numOfRows);
|
||||
void blockDataCleanup(SSDataBlock* pDataBlock);
|
||||
|
|
|
@ -1208,16 +1208,6 @@ int32_t colInfoDataEnsureCapacity(SColumnInfoData* pColumn, uint32_t numOfRows)
|
|||
return doEnsureCapacity(pColumn, &info, numOfRows);
|
||||
}
|
||||
|
||||
void colInfoDataMemset(SColumnInfoData* pColumn, uint32_t numOfRows) {
|
||||
if (!IS_VAR_DATA_TYPE(pColumn->info.type)) {
|
||||
memset(pColumn->pData, 0, pColumn->info.bytes * numOfRows);
|
||||
} else {
|
||||
if (pColumn->varmeta.length > 0) {
|
||||
memset(pColumn->pData, 0, pColumn->varmeta.length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
int32_t blockDataEnsureCapacity(SSDataBlock* pDataBlock, uint32_t numOfRows) {
|
||||
int32_t code = 0;
|
||||
if (numOfRows == 0) {
|
||||
|
|
|
@ -56,7 +56,6 @@ int32_t sclCreateColumnInfoData(SDataType *pType, int32_t numOfRows, SScalarPara
|
|||
return terrno;
|
||||
}
|
||||
|
||||
colInfoDataMemset(pColumnData, numOfRows);
|
||||
pParam->columnData = pColumnData;
|
||||
pParam->colAlloced = true;
|
||||
return TSDB_CODE_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue