From 95d54b36044196b7e996a188840ae8b1ef360895 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 23 Sep 2018 17:36:20 +0800 Subject: Move TextRange, make it constexpr and remove unused conversion function. --- CruUI/ui/controls/text_block.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'CruUI/ui/controls') diff --git a/CruUI/ui/controls/text_block.h b/CruUI/ui/controls/text_block.h index b05e7ff2..a50f5ee9 100644 --- a/CruUI/ui/controls/text_block.h +++ b/CruUI/ui/controls/text_block.h @@ -11,29 +11,6 @@ namespace cru { namespace controls { - struct TextRange - { - TextRange() = default; - TextRange(const int position, const int count) - : position(position), count(count) - { - - } - TextRange(const TextRange& other) = default; - TextRange(TextRange&& other) = default; - TextRange& operator=(const TextRange& other) = default; - TextRange& operator=(TextRange&& other) = default; - ~TextRange() = default; - - unsigned position; - unsigned count; - - explicit operator DWRITE_TEXT_RANGE() const - { - return DWRITE_TEXT_RANGE { position, count }; - } - }; - class TextBlock : public Control { public: -- cgit v1.2.3