CELIX-370: Removes invalid if statement in C++ dep man.

Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/216032ca
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/216032ca
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/216032ca

Branch: refs/heads/release/celix-2.0.0
Commit: 216032cae956379d4a740f37ae5caee7e957bd98
Parents: 454745c
Author: Pepijn Noltes <pepijnnol...@gmail.com>
Authored: Fri Aug 5 08:00:20 2016 +0200
Committer: Pepijn Noltes <pepijnnol...@gmail.com>
Committed: Fri Aug 5 08:00:20 2016 +0200

----------------------------------------------------------------------
 dependency_manager_cxx/include/celix/dm/types.h | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/216032ca/dependency_manager_cxx/include/celix/dm/types.h
----------------------------------------------------------------------
diff --git a/dependency_manager_cxx/include/celix/dm/types.h 
b/dependency_manager_cxx/include/celix/dm/types.h
index 7ed4bd7..bafeca4 100644
--- a/dependency_manager_cxx/include/celix/dm/types.h
+++ b/dependency_manager_cxx/include/celix/dm/types.h
@@ -72,9 +72,6 @@ namespace celix { namespace dm {
             epos += 1;
         }
         size_t len = epos - bpos - 1;
-        if (len < 0) {
-            len = 0;
-        }
         result = result.substr(bpos, len);
 #endif
 

Reply via email to