summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-04 10:22:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-04 10:22:29 +0200
commit9928cdc2e721bb85fdc09807b8d2c777aa212757 (patch)
tree7fc3b34089a7f3a923e670efbf97b36d30e92c06 /scene
parentcd7f172cf8b5706db08633662711fcc6027086bd (diff)
parentf501e4f665cac2f14cd43ae713283cf91ad03d09 (diff)
Merge pull request #66807 from akien-mga/core-unix-remove-NO_FCNTL-and-NO_STATVFS
Unix: Remove now unnecessary I/O defines, cleanup
Diffstat (limited to 'scene')
-rw-r--r--scene/main/node.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/scene/main/node.cpp b/scene/main/node.cpp
index a2b0f1a825..bbdba16cb5 100644
--- a/scene/main/node.cpp
+++ b/scene/main/node.cpp
@@ -1466,20 +1466,10 @@ bool Node::is_greater_than(const Node *p_node) const {
ERR_FAIL_COND_V(data.depth < 0, false);
ERR_FAIL_COND_V(p_node->data.depth < 0, false);
-#ifdef NO_ALLOCA
-
- Vector<int> this_stack;
- Vector<int> that_stack;
- this_stack.resize(data.depth);
- that_stack.resize(p_node->data.depth);
-
-#else
int *this_stack = (int *)alloca(sizeof(int) * data.depth);
int *that_stack = (int *)alloca(sizeof(int) * p_node->data.depth);
-#endif
-
const Node *n = this;
int idx = data.depth - 1;