[Bf-blender-cvs] [82fc0e0] object_nodes: Cleanup: removed some unused code.
Lukas Tönne
noreply at git.blender.org
Mon May 16 12:44:42 CEST 2016
Commit: 82fc0e02abefc7d8fb6adacf9ae2cf8710eedb55
Author: Lukas Tönne
Date: Mon May 16 12:44:25 2016 +0200
Branches: object_nodes
https://developer.blender.org/rB82fc0e02abefc7d8fb6adacf9ae2cf8710eedb55
Cleanup: removed some unused code.
===================================================================
M source/blender/blenvm/llvm/llvm_types.cc
===================================================================
diff --git a/source/blender/blenvm/llvm/llvm_types.cc b/source/blender/blenvm/llvm/llvm_types.cc
index a01cc95..53c9056 100644
--- a/source/blender/blenvm/llvm/llvm_types.cc
+++ b/source/blender/blenvm/llvm/llvm_types.cc
@@ -117,15 +117,6 @@ llvm::FunctionType *llvm_create_node_function_type(llvm::LLVMContext &context,
{
using namespace llvm;
-#if 0 /* struct return signatures, unused */
- StructType *return_type = StructType::get(context, outputs);
-
- std::vector<llvm::Type*> arg_types;
- arg_types.push_back(PointerType::get(return_type, 0));
- arg_types.insert(arg_types.end(), inputs.begin(), inputs.end());
-
- return FunctionType::get(TypeBuilder<void, true>::get(context), arg_types, false);
-#else
std::vector<llvm::Type*> arg_types;
for (int i = 0; i < outputs.size(); ++i) {
Type *value_type = outputs[i];
@@ -135,7 +126,6 @@ llvm::FunctionType *llvm_create_node_function_type(llvm::LLVMContext &context,
arg_types.insert(arg_types.end(), inputs.begin(), inputs.end());
return FunctionType::get(TypeBuilder<void, true>::get(context), arg_types, false);
-#endif
}
} /* namespace blenvm */
More information about the Bf-blender-cvs
mailing list