Skip to content

Commit

Permalink
[#20] : Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ange-yaghi committed Aug 9, 2019
1 parent fceac49 commit 74573ee
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 239 deletions.
8 changes: 3 additions & 5 deletions src/ir_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ piranha::Node *piranha::IrNode::_generateNode(IrContextTree *context, NodeProgra
}

if (node != nullptr) {
if (!newContainer->findNode(node) && !newContainer->getTopLevel()->findContainer(node)) {
if (!newContainer->getTopLevel()->findContainer(node)) {
newContainer->addNode(node);
}
}
Expand Down Expand Up @@ -486,17 +486,15 @@ piranha::Node *piranha::IrNode::_generateNode(IrContextTree *context, NodeProgra
}

if (node != nullptr) {
if (!newContainer->findNode(newNode) && !newContainer->findContainer(node)) {
if (!newContainer->findContainer(node)) {
newContainer->addNode(node);
}
}

if (output != nullptr) {
Node *nodeInterface = output->getInterface();
if (nodeInterface != nullptr) {
if (!newContainer->findNode(nodeInterface) && !newContainer->findContainer(nodeInterface)) {
newContainer->addNode(nodeInterface);
}
newContainer->addNode(nodeInterface);
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions src/node_container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ piranha::NodeContainer::~NodeContainer() {
void piranha::NodeContainer::addNode(Node *node) {
if (getTopLevel()->findNode(node)) return;

if (node->getInterfaceInput() != nullptr) {
int a = 0;
}

m_nodes.push_back(node);
node->setContainer(this);
}
Expand Down
35 changes: 0 additions & 35 deletions test/sdl/manta_lib/lib/atomic_types.mr

This file was deleted.

10 changes: 0 additions & 10 deletions test/sdl/manta_lib/lib/color.mr

This file was deleted.

3 changes: 0 additions & 3 deletions test/sdl/manta_lib/lib/lambertian_bsdf.mr

This file was deleted.

8 changes: 0 additions & 8 deletions test/sdl/manta_lib/lib/simple_bsdf_material.mr

This file was deleted.

6 changes: 0 additions & 6 deletions test/sdl/manta_lib/tests/color_test.mr

This file was deleted.

57 changes: 0 additions & 57 deletions test/sdl/manta_lib/tests/demo.mr

This file was deleted.

44 changes: 0 additions & 44 deletions test/sdl/manta_lib/tests/double_inline_test.mr

This file was deleted.

22 changes: 0 additions & 22 deletions test/sdl/manta_lib/tests/inline_test.mr

This file was deleted.

10 changes: 0 additions & 10 deletions test/sdl/manta_lib/tests/simple_material_test.mr

This file was deleted.

11 changes: 0 additions & 11 deletions test/sdl/manta_lib/tests/string_test.mr

This file was deleted.

3 changes: 0 additions & 3 deletions test/sdl/manta_lib/tests/vector_test.mr

This file was deleted.

21 changes: 0 additions & 21 deletions test/sdl/manta_lib/tests/vector_test_2.mr

This file was deleted.

0 comments on commit 74573ee

Please sign in to comment.