rm unused
This commit is contained in:
parent
ffc952e31e
commit
146c36b0ad
|
@ -17,7 +17,6 @@
|
|||
#include "dmMgmt.h"
|
||||
#include "audit.h"
|
||||
#include "libs/function/tudf.h"
|
||||
#include "nodes.h"
|
||||
|
||||
#define DM_INIT_AUDIT() \
|
||||
do { \
|
||||
|
|
|
@ -46,7 +46,6 @@ typedef struct SBuiltinNodeDefinition {
|
|||
SBuiltinNodeDefinition funcNodes[QUERY_NODE_END] = {NULL};
|
||||
|
||||
static TdThreadOnce functionNodeInit = PTHREAD_ONCE_INIT;
|
||||
volatile int32_t initNodeCode = -1;
|
||||
|
||||
|
||||
static void setFunc(const char* name, int32_t type, int32_t nodeSize, FExecNodeToJson toJsonFunc,
|
||||
|
@ -65,7 +64,7 @@ bool funcArrayCheck(int32_t type) {
|
|||
nodesError("funcArrayCheck out of range type = %d", type);
|
||||
return false;
|
||||
}
|
||||
// only init once, do nothing when initNodeCode == 0
|
||||
// only init once, do nothing when run funcArrayCheck again
|
||||
taosThreadOnce(&functionNodeInit, doInitNodeFuncArray);
|
||||
|
||||
if (!funcNodes[type].name) {
|
||||
|
@ -7437,10 +7436,6 @@ void nodesDestroyNode(SNode* pNode) {
|
|||
|
||||
// clang-format off
|
||||
static void doInitNodeFuncArray() {
|
||||
if (initNodeCode == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
setFunc("Column",
|
||||
QUERY_NODE_COLUMN,
|
||||
sizeof(SColumnNode),
|
||||
|
@ -8848,7 +8843,6 @@ static void doInitNodeFuncArray() {
|
|||
jsonToPhysiHashJoinNode,
|
||||
destoryHashJoinPhysiNode
|
||||
);
|
||||
initNodeCode = 0;
|
||||
}
|
||||
|
||||
// clang-format on
|
||||
|
|
Loading…
Reference in New Issue