diff --git a/engine/src/flutter/impeller/aiks/aiks_unittests.cc b/engine/src/flutter/impeller/aiks/aiks_unittests.cc index bf2c0adbe8..9875a2215a 100644 --- a/engine/src/flutter/impeller/aiks/aiks_unittests.cc +++ b/engine/src/flutter/impeller/aiks/aiks_unittests.cc @@ -387,7 +387,6 @@ TEST_P(AiksTest, CanRenderLinearGradientManyColors) { 0, 0, 0, 1 // }; std::string label = "##1"; - label.c_str(); for (int i = 0; i < 4; i++) { ImGui::InputScalarN(label.c_str(), ImGuiDataType_Float, &(matrix.vec[i]), 4, NULL, NULL, "%.2f", 0); @@ -458,7 +457,6 @@ TEST_P(AiksTest, CanRenderLinearGradientWayManyColors) { 0, 0, 0, 1 // }; std::string label = "##1"; - label.c_str(); for (int i = 0; i < 4; i++) { ImGui::InputScalarN(label.c_str(), ImGuiDataType_Float, &(matrix.vec[i]), 4, NULL, NULL, "%.2f", 0); @@ -521,7 +519,6 @@ TEST_P(AiksTest, CanRenderLinearGradientManyColorsUnevenStops) { 0, 0, 0, 1 // }; std::string label = "##1"; - label.c_str(); for (int i = 0; i < 4; i++) { ImGui::InputScalarN(label.c_str(), ImGuiDataType_Float, &(matrix.vec[i]), 4, NULL, NULL, "%.2f", 0); @@ -641,7 +638,6 @@ TEST_P(AiksTest, CanRenderRadialGradientManyColors) { 0, 0, 0, 1 // }; std::string label = "##1"; - label.c_str(); for (int i = 0; i < 4; i++) { ImGui::InputScalarN(label.c_str(), ImGuiDataType_Float, &(matrix.vec[i]), 4, NULL, NULL, "%.2f", 0); @@ -765,7 +761,6 @@ TEST_P(AiksTest, CanRenderSweepGradientManyColors) { 0, 0, 0, 1 // }; std::string label = "##1"; - label.c_str(); for (int i = 0; i < 4; i++) { ImGui::InputScalarN(label.c_str(), ImGuiDataType_Float, &(matrix.vec[i]), 4, NULL, NULL, "%.2f", 0); diff --git a/engine/src/flutter/impeller/geometry/geometry_unittests.cc b/engine/src/flutter/impeller/geometry/geometry_unittests.cc index 2eb3107531..301616c5a3 100644 --- a/engine/src/flutter/impeller/geometry/geometry_unittests.cc +++ b/engine/src/flutter/impeller/geometry/geometry_unittests.cc @@ -1659,7 +1659,6 @@ TEST(GeometryTest, Gradient) { colors.push_back(Color::Blue()); stops.push_back(i / 1025.0); } - stops[1999] = 1.0; uint32_t texture_size; auto gradient = CreateGradientBuffer(colors, stops, &texture_size);