@@ -110,30 +110,6 @@ PyCameraEvent PyCameraManager::convertEvent(const CameraEvent &event)
return pyevent;
}
-/* DEPRECATED */
-std::vector<py::object> PyCameraManager::getReadyRequests()
-{
- int ret = readFd();
-
- if (ret == -EAGAIN)
- return std::vector<py::object>();
-
- if (ret != 0)
- throw std::system_error(-ret, std::generic_category());
-
- std::vector<py::object> py_reqs;
-
- for (const auto &ev : getEvents()) {
- if (ev.type_ != CameraEventType::RequestCompleted)
- continue;
-
- PyCameraEvent pyev = convertEvent(ev);
- py_reqs.push_back(pyev.request_);
- }
-
- return py_reqs;
-}
-
std::vector<PyCameraEvent> PyCameraManager::getPyEvents()
{
int ret = readFd();
@@ -70,7 +70,6 @@ public:
int eventFd() const { return eventFd_.get(); }
- std::vector<pybind11::object> getReadyRequests(); /* DEPRECATED */
std::vector<PyCameraEvent> getPyEvents();
std::vector<PyCameraEvent> getPyCameraEvents(std::shared_ptr<Camera> camera);
@@ -170,9 +170,6 @@ PYBIND11_MODULE(_libcamera, m)
.def_property_readonly("event_fd", &PyCameraManager::eventFd)
- /* DEPRECATED */
- .def("get_ready_requests", &PyCameraManager::getReadyRequests)
-
.def("get_events", &PyCameraManager::getPyEvents);
pyCamera