mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-22 16:15:09 +03:00
android: camera_hal_manager: Remove unused close() method
The CameraHalManager::close() method isn't used, remove it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
06166a331c
commit
dadd1fd8fe
2 changed files with 1 additions and 10 deletions
|
@ -25,7 +25,7 @@ LOG_DECLARE_CATEGORY(HAL);
|
||||||
* and spawns its own thread where libcamera related events are dispatched to.
|
* and spawns its own thread where libcamera related events are dispatched to.
|
||||||
* It wraps the libcamera CameraManager operations and provides helpers for the
|
* It wraps the libcamera CameraManager operations and provides helpers for the
|
||||||
* camera_module_t operations, to retrieve the number of cameras in the system,
|
* camera_module_t operations, to retrieve the number of cameras in the system,
|
||||||
* their static information and to open and close camera devices.
|
* their static information and to open camera devices.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
CameraHalManager::~CameraHalManager()
|
CameraHalManager::~CameraHalManager()
|
||||||
|
@ -109,14 +109,6 @@ CameraProxy *CameraHalManager::open(unsigned int id,
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CameraHalManager::close(CameraProxy *proxy)
|
|
||||||
{
|
|
||||||
proxy->close();
|
|
||||||
LOG(HAL, Info) << "Close camera '" << proxy->id() << "'";
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned int CameraHalManager::numCameras() const
|
unsigned int CameraHalManager::numCameras() const
|
||||||
{
|
{
|
||||||
return cameraManager_->cameras().size();
|
return cameraManager_->cameras().size();
|
||||||
|
|
|
@ -29,7 +29,6 @@ public:
|
||||||
int init();
|
int init();
|
||||||
|
|
||||||
CameraProxy *open(unsigned int id, const hw_module_t *module);
|
CameraProxy *open(unsigned int id, const hw_module_t *module);
|
||||||
int close(CameraProxy *proxy);
|
|
||||||
|
|
||||||
unsigned int numCameras() const;
|
unsigned int numCameras() const;
|
||||||
int getCameraInfo(unsigned int id, struct camera_info *info);
|
int getCameraInfo(unsigned int id, struct camera_info *info);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue