Skip to content

[Merged by Bors] - Remove unused DepthCalculation enum#5684

Closed
contagnas wants to merge 1 commit intobevyengine:mainfrom
contagnas:remove-DepthCalculation-enum
Closed

[Merged by Bors] - Remove unused DepthCalculation enum#5684
contagnas wants to merge 1 commit intobevyengine:mainfrom
contagnas:remove-DepthCalculation-enum

Conversation

@contagnas
Copy link
Contributor

Objective

Remove unused enum DepthCalculation and its usages. This was used to compute visible entities in the old renderer, but is now unused.

Solution

sed 's/DepthCalculation//g'


Changelog

Changed

Removed bevy_render::camera::DepthCalculation.

Migration Guide

Remove references to bevy_render::camera::DepthCalculation, such as use bevy_render::camera::DepthCalculation. Remove depth_calculation fields from Projections.

@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen C-Code-Quality A section of code that is hard to understand or change M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide labels Aug 14, 2022
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Aug 14, 2022
Copy link
Contributor

@superdump superdump left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

bors bot pushed a commit that referenced this pull request Aug 14, 2022
# Objective

Remove unused `enum DepthCalculation` and its usages. This was used to compute visible entities in the [old renderer](https://github.com/bevyengine/bevy/blob/db665b96c07084f081b0c9ab367e67297fe35132/crates/bevy_render/src/camera/visible_entities.rs), but is now unused.

## Solution

`sed 's/DepthCalculation//g'`

---

## Changelog
### Changed
Removed `bevy_render::camera::DepthCalculation`.

## Migration Guide
Remove references to `bevy_render::camera::DepthCalculation`, such as `use bevy_render::camera::DepthCalculation`. Remove `depth_calculation` fields from Projections.
@bors
Copy link
Contributor

bors bot commented Aug 14, 2022

Build failed:

Remove comment from depth_calculation

Co-authored-by: Rob Parrett <robparrett@gmail.com>

cargo fmt
@mockersf
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Aug 14, 2022
# Objective

Remove unused `enum DepthCalculation` and its usages. This was used to compute visible entities in the [old renderer](https://github.com/bevyengine/bevy/blob/db665b96c07084f081b0c9ab367e67297fe35132/crates/bevy_render/src/camera/visible_entities.rs), but is now unused.

## Solution

`sed 's/DepthCalculation//g'`

---

## Changelog
### Changed
Removed `bevy_render::camera::DepthCalculation`.

## Migration Guide
Remove references to `bevy_render::camera::DepthCalculation`, such as `use bevy_render::camera::DepthCalculation`. Remove `depth_calculation` fields from Projections.
@bors
Copy link
Contributor

bors bot commented Aug 14, 2022

@bors bors bot changed the title Remove unused DepthCalculation enum [Merged by Bors] - Remove unused DepthCalculation enum Aug 14, 2022
@bors bors bot closed this Aug 14, 2022
maccesch pushed a commit to Synphonyte/bevy that referenced this pull request Sep 28, 2022
# Objective

Remove unused `enum DepthCalculation` and its usages. This was used to compute visible entities in the [old renderer](https://github.com/bevyengine/bevy/blob/db665b96c07084f081b0c9ab367e67297fe35132/crates/bevy_render/src/camera/visible_entities.rs), but is now unused.

## Solution

`sed 's/DepthCalculation//g'`

---

## Changelog
### Changed
Removed `bevy_render::camera::DepthCalculation`.

## Migration Guide
Remove references to `bevy_render::camera::DepthCalculation`, such as `use bevy_render::camera::DepthCalculation`. Remove `depth_calculation` fields from Projections.
james7132 pushed a commit to james7132/bevy that referenced this pull request Oct 28, 2022
# Objective

Remove unused `enum DepthCalculation` and its usages. This was used to compute visible entities in the [old renderer](https://github.com/bevyengine/bevy/blob/db665b96c07084f081b0c9ab367e67297fe35132/crates/bevy_render/src/camera/visible_entities.rs), but is now unused.

## Solution

`sed 's/DepthCalculation//g'`

---

## Changelog
### Changed
Removed `bevy_render::camera::DepthCalculation`.

## Migration Guide
Remove references to `bevy_render::camera::DepthCalculation`, such as `use bevy_render::camera::DepthCalculation`. Remove `depth_calculation` fields from Projections.
ItsDoot pushed a commit to ItsDoot/bevy that referenced this pull request Feb 1, 2023
# Objective

Remove unused `enum DepthCalculation` and its usages. This was used to compute visible entities in the [old renderer](https://github.com/bevyengine/bevy/blob/db665b96c07084f081b0c9ab367e67297fe35132/crates/bevy_render/src/camera/visible_entities.rs), but is now unused.

## Solution

`sed 's/DepthCalculation//g'`

---

## Changelog
### Changed
Removed `bevy_render::camera::DepthCalculation`.

## Migration Guide
Remove references to `bevy_render::camera::DepthCalculation`, such as `use bevy_render::camera::DepthCalculation`. Remove `depth_calculation` fields from Projections.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Code-Quality A section of code that is hard to understand or change M-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants