aboutsummaryrefslogtreecommitdiff
path: root/include/cru/base/Range.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-08-16 19:49:28 +0800
committerYuqian Yang <crupest@crupest.life>2025-08-16 19:49:28 +0800
commit63807c3064002ec75b48c444a767e396c273f403 (patch)
treea8d88af8da954c9a72dfc73b5fad4f4b757ffedb /include/cru/base/Range.h
parent600307d3d0133accc3aaceed694e897ad48cd584 (diff)
downloadcru-63807c3064002ec75b48c444a767e396c273f403.tar.gz
cru-63807c3064002ec75b48c444a767e396c273f403.tar.bz2
cru-63807c3064002ec75b48c444a767e396c273f403.zip
Fix compiling error of name conflict.
Diffstat (limited to 'include/cru/base/Range.h')
-rw-r--r--include/cru/base/Range.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/cru/base/Range.h b/include/cru/base/Range.h
index ade1979a..edc2ec55 100644
--- a/include/cru/base/Range.h
+++ b/include/cru/base/Range.h
@@ -1,10 +1,6 @@
#pragma once
#include "Base.h"
-#ifdef CRU_PLATFORM_OSX
-#include <CoreFoundation/CoreFoundation.h>
-#endif
-
namespace cru {
struct Range final {
constexpr static Range FromTwoSides(Index start, Index end) {
@@ -40,14 +36,6 @@ struct Range final {
return Range::FromTwoSides(coerce(GetStart()), coerce(GetEnd()));
}
-#ifdef CRU_PLATFORM_OSX
- CFRange ToCFRange() const { return CFRangeMake(this->position, this->count); }
-
- static Range FromCFRange(const CFRange& range) {
- return Range(range.location, range.length);
- }
-#endif
-
Index position = 0;
Index count = 0;
};