From 53b4419986953e6f20b10588e187e403b3d0791e Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Fri, 20 Oct 2023 17:42:47 +0300 Subject: libcamera: transform: Fold transformToOrientation() in its only caller The transformToOrientation() function is called from Orientation operator*(const Orientation &o, const Transform &t); only. Fold the code in the caller and drop the transformToOrientation() function to drop what can be considered as an ill-defined operation from the API. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- include/libcamera/transform.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/libcamera/transform.h') diff --git a/include/libcamera/transform.h b/include/libcamera/transform.h index 9eb10e15..4998a6c0 100644 --- a/include/libcamera/transform.h +++ b/include/libcamera/transform.h @@ -72,7 +72,6 @@ constexpr Transform operator~(Transform t) Transform transformFromRotation(int angle, bool *success = nullptr); Transform transformFromOrientation(const Orientation &orientation); -Orientation transformToOrientation(const Transform &transform); Transform operator/(const Orientation &o1, const Orientation &o2); Orientation operator*(const Orientation &o, const Transform &t); -- cgit v1.2.1