From a48ff30f9d4ac8ae6cc9adef4a07f8d9beb69e7a Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 25 Jun 2020 23:44:43 +0800 Subject: Write layout logic at half way. --- src/ui/render/LayoutUtility.cpp | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 src/ui/render/LayoutUtility.cpp (limited to 'src/ui/render/LayoutUtility.cpp') diff --git a/src/ui/render/LayoutUtility.cpp b/src/ui/render/LayoutUtility.cpp deleted file mode 100644 index 03252f1c..00000000 --- a/src/ui/render/LayoutUtility.cpp +++ /dev/null @@ -1,15 +0,0 @@ -#include "cru/ui/render/LayoutUtility.hpp" - -#include - -namespace cru::ui::render { -Size Min(const Size& left, const Size& right) { - return Size{std::min(left.width, right.width), - std::min(left.height, right.height)}; -} - -Size Max(const Size& left, const Size& right) { - return Size{std::max(left.width, right.width), - std::max(left.height, right.height)}; -} -} // namespace cru::ui::render -- cgit v1.2.3