]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
remove redundant subscriptions
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 9 May 2005 12:22:50 +0000 (12:22 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 9 May 2005 12:22:50 +0000 (12:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@10657 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/data_out.cc

index ca4a7375ac0afdb1580c58bea0cf6c59d57914fe..37394889d8df2c201720465fc6e92878d560716f 100644 (file)
@@ -131,7 +131,7 @@ DataEntry<VectorType>::clear ()
 template <int dof_handler_dim, int patch_dim, int patch_space_dim>
 DataOut_DoFData<dof_handler_dim,patch_dim,patch_space_dim>::DataOut_DoFData ()
                :
-               dofs(0)
+               dofs(0,typeid(*this).name())
 {}
 
 
@@ -152,12 +152,7 @@ attach_dof_handler (const DoFHandler<dof_handler_dim> &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<dof_handler_dim,patch_dim,patch_space_dim>::clear ()
   cell_data.erase (cell_data.begin(), cell_data.end());
 
   if (dofs != 0)
-    {
-      dofs->unsubscribe ();
-      dofs = 0;
-    };
+    dofs = 0;
 
                                   // delete patches
   std::vector<Patch> dummy;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.