From 3a4bc5a1416ea920644f3e0850920898f52459aa Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 4 Aug 2013 00:26:46 -0400 Subject: CarpetLib: Remove some outdated, commented-out code --- Carpet/CarpetLib/src/gf.cc | 31 ------------------------------- Carpet/CarpetLib/src/gf.hh | 14 -------------- Carpet/CarpetLib/src/ggf.cc | 5 ----- Carpet/CarpetLib/src/ggf.hh | 7 ------- 4 files changed, 57 deletions(-) diff --git a/Carpet/CarpetLib/src/gf.cc b/Carpet/CarpetLib/src/gf.cc index 8a27f9eef..939c34373 100644 --- a/Carpet/CarpetLib/src/gf.cc +++ b/Carpet/CarpetLib/src/gf.cc @@ -39,37 +39,6 @@ gf::~gf () -#if 0 -// Access to the data -template -const data* gf::operator() (int tl, int rl, int lc, int ml) const -{ - assert (rl>=0 and rl=0 and lc=0 and ml=0 and tl*)storage.AT(ml).AT(rl).AT(lc).AT(tl); -} - -template -data* gf::operator() (int tl, int rl, int lc, int ml) -{ - assert (rl>=0 and rl=0 and lc=0 and ml=0 and tl::operator() " - << "vi=" << varindex << " name=" << (varindex>=0 ? CCTK_FullName(varindex) : "") << " " - << "pot=" << prolongation_order_time << " " - << "tl=" << tl << " rl=" << rl << " lc=" << lc << " ml=" << ml << "\n"; - } - assert (tl>=0 and tl*)storage.AT(ml).AT(rl).AT(lc).AT(tl); -} -#endif - - - // Memory usage template size_t diff --git a/Carpet/CarpetLib/src/gf.hh b/Carpet/CarpetLib/src/gf.hh index bf58ac7ff..2711b4309 100644 --- a/Carpet/CarpetLib/src/gf.hh +++ b/Carpet/CarpetLib/src/gf.hh @@ -22,13 +22,6 @@ using namespace std; // A real grid function template class gf: public ggf { - - // Types - typedef data* tdata; // data ... - typedef vector mdata; // ... for each multigrid level - typedef vector cdata; // ... for each component - typedef vector rdata; // ... for each refinement level - typedef vector fdata; // ... for each time level public: @@ -69,13 +62,6 @@ public: // Access to the data -#if 0 - virtual const data* operator() (int tl, int rl, int lc, int ml) const - CCTK_MEMBER_ATTRIBUTE_PURE; - virtual data* operator() (int tl, int rl, int lc, int ml) - CCTK_MEMBER_ATTRIBUTE_PURE; -#endif - data const* typed_data_pointer (int tl, int rl, int lc, int ml) const { assert (rl>=0 and rl