Static analysis: remove "break" after "return"
Changes as requested to keep in sync with godotengine/godot-cpp#929
This commit is contained in:
@@ -181,7 +181,7 @@ Plane Projection::get_projection_plane(Planes p_plane) const {
|
||||
new_plane.normal = -new_plane.normal;
|
||||
new_plane.normalize();
|
||||
return new_plane;
|
||||
} break;
|
||||
}
|
||||
case PLANE_FAR: {
|
||||
Plane new_plane = Plane(matrix[3] - matrix[2],
|
||||
matrix[7] - matrix[6],
|
||||
@@ -191,7 +191,7 @@ Plane Projection::get_projection_plane(Planes p_plane) const {
|
||||
new_plane.normal = -new_plane.normal;
|
||||
new_plane.normalize();
|
||||
return new_plane;
|
||||
} break;
|
||||
}
|
||||
case PLANE_LEFT: {
|
||||
Plane new_plane = Plane(matrix[3] + matrix[0],
|
||||
matrix[7] + matrix[4],
|
||||
@@ -201,7 +201,7 @@ Plane Projection::get_projection_plane(Planes p_plane) const {
|
||||
new_plane.normal = -new_plane.normal;
|
||||
new_plane.normalize();
|
||||
return new_plane;
|
||||
} break;
|
||||
}
|
||||
case PLANE_TOP: {
|
||||
Plane new_plane = Plane(matrix[3] - matrix[1],
|
||||
matrix[7] - matrix[5],
|
||||
@@ -211,7 +211,7 @@ Plane Projection::get_projection_plane(Planes p_plane) const {
|
||||
new_plane.normal = -new_plane.normal;
|
||||
new_plane.normalize();
|
||||
return new_plane;
|
||||
} break;
|
||||
}
|
||||
case PLANE_RIGHT: {
|
||||
Plane new_plane = Plane(matrix[3] - matrix[0],
|
||||
matrix[7] - matrix[4],
|
||||
@@ -221,7 +221,7 @@ Plane Projection::get_projection_plane(Planes p_plane) const {
|
||||
new_plane.normal = -new_plane.normal;
|
||||
new_plane.normalize();
|
||||
return new_plane;
|
||||
} break;
|
||||
}
|
||||
case PLANE_BOTTOM: {
|
||||
Plane new_plane = Plane(matrix[3] + matrix[1],
|
||||
matrix[7] + matrix[5],
|
||||
@@ -231,7 +231,7 @@ Plane Projection::get_projection_plane(Planes p_plane) const {
|
||||
new_plane.normal = -new_plane.normal;
|
||||
new_plane.normalize();
|
||||
return new_plane;
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
||||
return Plane();
|
||||
|
||||
Reference in New Issue
Block a user