From 34f900f63d63868d1cf671eea3f87bedba532683 Mon Sep 17 00:00:00 2001 From: guido Date: Mon, 9 May 2005 12:22:50 +0000 Subject: [PATCH] remove redundant subscriptions git-svn-id: https://svn.dealii.org/trunk@10657 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/data_out.cc | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/deal.II/deal.II/source/numerics/data_out.cc b/deal.II/deal.II/source/numerics/data_out.cc index ca4a7375ac..37394889d8 100644 --- a/deal.II/deal.II/source/numerics/data_out.cc +++ b/deal.II/deal.II/source/numerics/data_out.cc @@ -131,7 +131,7 @@ DataEntry::clear () template DataOut_DoFData::DataOut_DoFData () : - dofs(0) + dofs(0,typeid(*this).name()) {} @@ -152,12 +152,7 @@ attach_dof_handler (const DoFHandler &d) Assert (dof_data.size() == 0, ExcOldDataStillPresent()); Assert (cell_data.size() == 0, ExcOldDataStillPresent()); - if (dofs != 0) - dofs->unsubscribe (); - dofs = &d; - if (dofs != 0) - dofs->subscribe (); } @@ -303,10 +298,7 @@ clear_input_data_references () cell_data[i]->clear (); if (dofs != 0) - { - dofs->unsubscribe (); - dofs = 0; - }; + dofs = 0; } @@ -319,10 +311,7 @@ DataOut_DoFData::clear () cell_data.erase (cell_data.begin(), cell_data.end()); if (dofs != 0) - { - dofs->unsubscribe (); - dofs = 0; - }; + dofs = 0; // delete patches std::vector dummy; -- 2.39.5