From 0482182f8e57d026382ab5cc5f7191a41d8fa528 Mon Sep 17 00:00:00 2001 From: "Katz, Matan" Date: Sun, 2 Dec 2018 13:10:49 +0200 Subject: [PATCH] c++ api - remove get_removed_devices method from event_information class --- include/librealsense2/hpp/rs_context.hpp | 9 --------- wrappers/python/python.cpp | 4 +--- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/include/librealsense2/hpp/rs_context.hpp b/include/librealsense2/hpp/rs_context.hpp index 541735dcb1..39c81f6642 100644 --- a/include/librealsense2/hpp/rs_context.hpp +++ b/include/librealsense2/hpp/rs_context.hpp @@ -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; diff --git a/wrappers/python/python.cpp b/wrappers/python/python.cpp index 8d9ba843fc..7f48d6e8dd 100644 --- a/wrappers/python/python.cpp +++ b/wrappers/python/python.cpp @@ -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_ tm2(m, "tm2"); tm2.def(py::init(), "device"_a)