aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transformation_facade.cc10
-rw-r--r--src/transformation_facade.h4
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<TransformationFacade> ptr;
+ class input;
+
template <typename... Arguments>
static ptr try_create(
const std::function<void(const ErrorCapacitor::error_cache&)>&,
@@ -40,8 +42,6 @@ class TransformationFacade {
IncludeEntityResolver*
);
- ~TransformationFacade();
-
template <typename Target>
void generate(Target&);