From cd2a6c17ab1108e2bf01125b65292014c002db95 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 28 Jun 2014 09:55:58 +0200 Subject: Removed unnecessary TransformationFacade destructor * outdated documentation led me to believe that one has to free compiled stylesheets and input sources manually ** while xalan::XalanTransformer offers the required methods it also calls them by itself on destruction --- src/transformation_facade.cc | 10 ---------- src/transformation_facade.h | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/transformation_facade.cc b/src/transformation_facade.cc index 93d14ea..97b17bb 100644 --- a/src/transformation_facade.cc +++ b/src/transformation_facade.cc @@ -66,16 +66,6 @@ TransformationFacade::TransformationFacade( errorCapacitor.discharge(); } -TransformationFacade::~TransformationFacade() { - this->transformer_.destroyParsedSource( - this->input_ - ); - - this->transformer_.destroyStylesheet( - this->transformation_ - ); -} - WarningCapacitor::warning_cache_ptr TransformationFacade::getCachedWarnings() { return this->warning_capacitor_.discharge(); } diff --git a/src/transformation_facade.h b/src/transformation_facade.h index ca72c90..00a5785 100644 --- a/src/transformation_facade.h +++ b/src/transformation_facade.h @@ -20,6 +20,8 @@ class TransformationFacade { public: typedef std::unique_ptr ptr; + class input; + template static ptr try_create( const std::function&, @@ -40,8 +42,6 @@ class TransformationFacade { IncludeEntityResolver* ); - ~TransformationFacade(); - template void generate(Target&); -- cgit v1.2.3