diff --git a/Startcode/bintree.c b/Startcode/bintree.c index 9ed6196..1e51b58 100644 --- a/Startcode/bintree.c +++ b/Startcode/bintree.c @@ -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.