removed unnecessary comments

This commit is contained in:
lukas committed 2026-11-11 10:59:32 +01:00
1 parent 28eb9ad481
commit f24ee674ef
1 file changed
-15
-15
View File
@@ -63,21 +63,6 @@ TreeNode *addToTree(TreeNode *root, const void *data, size_t dataSize, CompareFc
return newnode;
}
/*
else{
//if the element is larger than the current element but not larger than the next one, insert it in the middle
TreeNode* newnode = malloc(sizeof(TreeNode));
newnode->data = malloc(dataSize);
memcpy(newnode->data, data, dataSize);
newnode->left = root;
newnode->right = root->right;
root->right->left = newnode;
root->right = newnode;
return newnode;
}
*/
// Iterates over the tree given by root. Follows the usage of strtok. If tree is NULL, the next entry of the last tree given is returned in ordering direction.
// Use your implementation of a stack to organize the iterator. Push the root node and all left nodes first. On returning the next element,
// push the top node and push all its left nodes.