Skip to content

Commit 7eb23a9

Browse files
committed
Removed unnecessary Json tags
1 parent c6ce5b0 commit 7eb23a9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/effects/ObjectDetection.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -467,16 +467,6 @@ Json::Value ObjectDetection::JsonValue() const {
467467
}
468468
root["objects"] = objects;
469469

470-
// Add the selected object Json to root
471-
if(trackedObjects.count(selectedObjectIndex) != 0){
472-
auto selectedObject = trackedObjects.at(selectedObjectIndex);
473-
if (selectedObject){
474-
Json::Value selectedObjectJSON = selectedObject->JsonValue();
475-
for (auto const& key : selectedObjectJSON.getMemberNames())
476-
root[key] = selectedObjectJSON[key];
477-
}
478-
}
479-
480470
// return JsonValue
481471
return root;
482472
}

0 commit comments

Comments
 (0)