Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Castilla <manzanillawork@gmail.com>2021-09-28 20:33:18 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-09-28 23:00:17 +0300
commit0830211c952983075f420175904fa10edf7b7f08 (patch)
treea8dd3c48d4d6624847665b55cbcffcf36e979e0b /source/blender/compositor/COM_defines.h
parentf84fb12f5d72433780a96c3cc4381399f153cf1a (diff)
Cleanup: Remove XRange and YRange in Compositor
Mostly unused and originally meant for areas with positive values. With canvas compositing areas position may be negative.
Diffstat (limited to 'source/blender/compositor/COM_defines.h')
-rw-r--r--source/blender/compositor/COM_defines.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/source/blender/compositor/COM_defines.h b/source/blender/compositor/COM_defines.h
index 55b331e279f..9991414aba4 100644
--- a/source/blender/compositor/COM_defines.h
+++ b/source/blender/compositor/COM_defines.h
@@ -127,24 +127,4 @@ constexpr float COM_BLUR_BOKEH_PIXELS = 512;
constexpr rcti COM_AREA_NONE = {0, 0, 0, 0};
constexpr rcti COM_CONSTANT_INPUT_AREA_OF_INTEREST = COM_AREA_NONE;
-constexpr IndexRange XRange(const rcti &area)
-{
- return IndexRange(area.xmin, area.xmax - area.xmin);
-}
-
-constexpr IndexRange YRange(const rcti &area)
-{
- return IndexRange(area.ymin, area.ymax - area.ymin);
-}
-
-constexpr IndexRange XRange(const rcti *area)
-{
- return XRange(*area);
-}
-
-constexpr IndexRange YRange(const rcti *area)
-{
- return YRange(*area);
-}
-
} // namespace blender::compositor