From d84541d0115704662f6c261735168377086211ca Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 7 Oct 2016 00:44:46 +0100 Subject: Remove previously deprecated functions --- slicer/slicer/modelParts.h | 3 --- slicer/slicer/slicer.h | 21 --------------------- slicer/test/compilation.cpp | 6 ------ slicer/test/serializers.cpp | 33 --------------------------------- 4 files changed, 63 deletions(-) diff --git a/slicer/slicer/modelParts.h b/slicer/slicer/modelParts.h index c131dc8..6801e87 100644 --- a/slicer/slicer/modelParts.h +++ b/slicer/slicer/modelParts.h @@ -177,9 +177,6 @@ namespace Slicer { T & Model; }; - template inline ModelPartPtr ModelPartFor(T & t) __attribute__ ((deprecated)); - template inline ModelPartPtr ModelPartFor(T & t) { return ModelPart::CreateFor(t); } - class DLL_PUBLIC ModelPartForRootBase : public ModelPart { public: ModelPartForRootBase(ModelPartPtr mp); diff --git a/slicer/slicer/slicer.h b/slicer/slicer/slicer.h index 267b597..ba233bb 100644 --- a/slicer/slicer/slicer.h +++ b/slicer/slicer/slicer.h @@ -6,13 +6,6 @@ #include namespace Slicer { - template - IceInternal::Handle - Deserialize(SerializerParams && ... sp) __attribute__ ((deprecated)); - template - void - Serialize(IceInternal::Handle object, SerializerParams && ... sp) __attribute__ ((deprecated)); - template Object DeserializeAnyWith(DeserializerPtr deserializer) @@ -29,13 +22,6 @@ namespace Slicer { return DeserializeAnyWith(new Deserializer(sp ...)); } - template - IceInternal::Handle - Deserialize(SerializerParams && ... sp) - { - return DeserializeAny, SerializerParams...>(sp ...); - } - template void SerializeAnyWith(Object object, SerializerPtr serializer) @@ -49,13 +35,6 @@ namespace Slicer { { SerializeAnyWith(object, new Serializer(sp ...)); } - - template - void - Serialize(IceInternal::Handle object, SerializerParams && ... sp) - { - SerializeAny(object, sp ...); - } } #endif diff --git a/slicer/test/compilation.cpp b/slicer/test/compilation.cpp index bdfcca2..da13652 100644 --- a/slicer/test/compilation.cpp +++ b/slicer/test/compilation.cpp @@ -11,9 +11,6 @@ BOOST_TEST_DONT_PRINT_LOG_VALUE(std::type_info); #define TypeTest(Var, Expr, Explicit, Expected) \ Var obj = Expr; \ - Slicer::ModelPartPtr mppc = Slicer::ModelPartFor(obj); \ - BOOST_REQUIRE_EQUAL(Slicer::Expected, mppc->GetType()); \ - \ Slicer::ModelPartPtr mpp = Slicer::ModelPart::CreateFor(obj); \ BOOST_REQUIRE_EQUAL(Slicer::Expected, mpp->GetType()); \ \ @@ -27,8 +24,6 @@ BOOST_TEST_DONT_PRINT_LOG_VALUE(std::type_info); #define StackTypeTest(Var, Explicit, Expected) \ TypeTest(Var, Var(), Explicit, Expected) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" BOOST_AUTO_TEST_CASE( compile_auto_modelpart_type_class ) { TypeTest(TestModule::BuiltInsPtr, new TestModule::BuiltIns(), ModelPartForClass, mpt_Complex); @@ -103,5 +98,4 @@ BOOST_AUTO_TEST_CASE( compile_auto_modelpart_type_enum ) { StackTypeTest(TestModule::SomeNumbers, ModelPartForEnum, mpt_Simple); } -#pragma GCC diagnostic pop diff --git a/slicer/test/serializers.cpp b/slicer/test/serializers.cpp index 329135f..6218b3b 100644 --- a/slicer/test/serializers.cpp +++ b/slicer/test/serializers.cpp @@ -549,39 +549,6 @@ BOOST_AUTO_TEST_CASE( conversion ) boost::get(*boost::get(v)["conv"])); } -BOOST_FIXTURE_TEST_SUITE ( compatWrapper, FileBased ); - -BOOST_AUTO_TEST_CASE( any ) -{ - BOOST_TEST_CHECKPOINT("Create folders"); - const fs::path tmpf = binDir / "compatWrapper"; - fs::create_directory(tmpf); - - BOOST_TEST_CHECKPOINT("Figure out paths"); - const boost::filesystem::path input = rootDir / "initial" / "builtins.xml"; - const boost::filesystem::path output = tmpf / "builtins.xml"; - - BOOST_TEST_CHECKPOINT("Deserialize with wrapper"); -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" - TestModule::BuiltInsPtr object = Slicer::Deserialize(input); -#pragma GCC diagnostic pop - - BOOST_TEST_CHECKPOINT("Test object"); - checkBuiltIns_valuesCorrect(object); - - BOOST_TEST_CHECKPOINT("Serialize with wrapper"); -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" - Slicer::Serialize(object, output); -#pragma GCC diagnostic pop - - BOOST_TEST_CHECKPOINT("Checksum: " << input << " === " << output); - diff(input, output); -} - -BOOST_AUTO_TEST_SUITE_END(); - BOOST_AUTO_TEST_SUITE_END(); BOOST_AUTO_TEST_CASE( customerModelPartCounters ) -- cgit v1.2.3