Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c++ api - remove get_removed_devices method from event_information class #2823

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions include/librealsense2/hpp/rs_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,6 @@ namespace rs2
return _added;
}

/**
* returns a list of all newly removed devices
* \return the list of all newly removed devices
*/
device_list get_removed_devices() const
{
return _removed;
}

private:
device_list _removed;
device_list _added;
Expand Down
4 changes: 1 addition & 3 deletions wrappers/python/python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,7 @@ PYBIND11_MODULE(NAME, m) {
.def("was_added", &rs2::event_information::was_added, "Check if "
"specific device was added.", "dev"_a)
.def("get_new_devices", &rs2::event_information::get_new_devices, "Returns a "
"list of all newly connected devices")
.def("get_removed_devices", &rs2::event_information::get_removed_devices, "Returns a "
"list of all newly removed devices");
"list of all newly connected devices");

py::class_<rs2::tm2, rs2::device> tm2(m, "tm2");
tm2.def(py::init<rs2::device>(), "device"_a)
Expand Down