From 7be062a71a01138761447fe8f594d1b73b6c6892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 11 Nov 2019 16:39:38 +0100 Subject: [PATCH] Trade: clean up unused & harmful error redirection in tests. Copypaste error. This would hide graceful assert messages, which is not good. --- .../Trade/Test/AbstractImporterTest.cpp | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/src/Magnum/Trade/Test/AbstractImporterTest.cpp b/src/Magnum/Trade/Test/AbstractImporterTest.cpp index e8415339e..d8b3d8203 100644 --- a/src/Magnum/Trade/Test/AbstractImporterTest.cpp +++ b/src/Magnum/Trade/Test/AbstractImporterTest.cpp @@ -988,9 +988,6 @@ void AbstractImporterTest::scene() { } } importer; - std::ostringstream out; - Error redirectError{&out}; - CORRADE_COMPARE(importer.sceneCount(), 8); CORRADE_COMPARE(importer.sceneForName("eighth"), 7); CORRADE_COMPARE(importer.sceneName(7), "eighth"); @@ -1157,9 +1154,6 @@ void AbstractImporterTest::animation() { } } importer; - std::ostringstream out; - Error redirectError{&out}; - CORRADE_COMPARE(importer.animationCount(), 8); CORRADE_COMPARE(importer.animationForName("eighth"), 7); CORRADE_COMPARE(importer.animationName(7), "eighth"); @@ -1364,9 +1358,6 @@ void AbstractImporterTest::light() { } } importer; - std::ostringstream out; - Error redirectError{&out}; - CORRADE_COMPARE(importer.lightCount(), 8); CORRADE_COMPARE(importer.lightForName("eighth"), 7); CORRADE_COMPARE(importer.lightName(7), "eighth"); @@ -1533,9 +1524,6 @@ void AbstractImporterTest::camera() { } } importer; - std::ostringstream out; - Error redirectError{&out}; - CORRADE_COMPARE(importer.cameraCount(), 8); CORRADE_COMPARE(importer.cameraForName("eighth"), 7); CORRADE_COMPARE(importer.cameraName(7), "eighth"); @@ -1702,9 +1690,6 @@ void AbstractImporterTest::object2D() { } } importer; - std::ostringstream out; - Error redirectError{&out}; - CORRADE_COMPARE(importer.object2DCount(), 8); CORRADE_COMPARE(importer.object2DForName("eighth"), 7); CORRADE_COMPARE(importer.object2DName(7), "eighth"); @@ -1871,9 +1856,6 @@ void AbstractImporterTest::object3D() { } } importer; - std::ostringstream out; - Error redirectError{&out}; - CORRADE_COMPARE(importer.object3DCount(), 8); CORRADE_COMPARE(importer.object3DForName("eighth"), 7); CORRADE_COMPARE(importer.object3DName(7), "eighth"); @@ -2040,9 +2022,6 @@ void AbstractImporterTest::mesh2D() { } } importer; - std::ostringstream out; - Error redirectError{&out}; - CORRADE_COMPARE(importer.mesh2DCount(), 8); CORRADE_COMPARE(importer.mesh2DForName("eighth"), 7); CORRADE_COMPARE(importer.mesh2DName(7), "eighth"); @@ -2209,9 +2188,6 @@ void AbstractImporterTest::mesh3D() { } } importer; - std::ostringstream out; - Error redirectError{&out}; - CORRADE_COMPARE(importer.mesh3DCount(), 8); CORRADE_COMPARE(importer.mesh3DForName("eighth"), 7); CORRADE_COMPARE(importer.mesh3DName(7), "eighth"); @@ -2378,9 +2354,6 @@ void AbstractImporterTest::material() { } } importer; - std::ostringstream out; - Error redirectError{&out}; - CORRADE_COMPARE(importer.materialCount(), 8); CORRADE_COMPARE(importer.materialForName("eighth"), 7); CORRADE_COMPARE(importer.materialName(7), "eighth"); @@ -2547,9 +2520,6 @@ void AbstractImporterTest::texture() { } } importer; - std::ostringstream out; - Error redirectError{&out}; - CORRADE_COMPARE(importer.textureCount(), 8); CORRADE_COMPARE(importer.textureForName("eighth"), 7); CORRADE_COMPARE(importer.textureName(7), "eighth");