Commit 5ed21d3fd88f390690a79c0db09334f95e750870

Authored by Jürgen Knödlseder
1 parent 5f51d870

Remove unused code (was probably committed by accident)

inst/cta/include/GCTAAeff2D.hpp
... ... @@ -68,13 +68,12 @@ public:
68 68 std::string print(const GChatter& chatter = NORMAL) const;
69 69  
70 70 // Methods
71   - const GCTAResponseTable& table(void) const;
72   - void table(const GCTAResponseTable& table);
73   - void read(const GFits& file);
74   - void write(GFitsBinTable& hdu) const;
75   - void save(const std::string& filename,
76   - const bool& clobber = false) const;
77   -
  71 + const GCTAResponseTable& table(void) const;
  72 + void table(const GCTAResponseTable& table);
  73 + void read(const GFits& file);
  74 + void write(GFitsBinTable& hdu) const;
  75 + void save(const std::string& filename,
  76 + const bool& clobber = false) const;
78 77  
79 78 private:
80 79 // Methods
... ... @@ -100,6 +99,7 @@ std::string GCTAAeff2D::filename(void) const
100 99 return m_filename;
101 100 }
102 101  
  102 +
103 103 /***********************************************************************//**
104 104 * @brief Return response table
105 105 *
... ... @@ -111,6 +111,7 @@ const GCTAResponseTable& GCTAAeff2D::table(void) const
111 111 return m_aeff;
112 112 }
113 113  
  114 +
114 115 /***********************************************************************//**
115 116 * @brief Assign response table
116 117 *
... ...
inst/cta/include/GCTAResponseIrf.hpp
... ... @@ -161,11 +161,6 @@ public:
161 161 const GCTAPointing& pnt,
162 162 const GEbounds& ebds) const;
163 163  
164   -protected:
165   - // Energy thresholds
166   - double m_lo_thres; //!< low safe energy threshold
167   - double m_hi_thres; //!< high safe energy threshold
168   -
169 164 private:
170 165 // Private methods
171 166 void init_members(void);
... ...
inst/cta/src/GCTAAeffArf.cpp
... ... @@ -252,17 +252,6 @@ void GCTAAeffArf::load(const std::string&amp; filename)
252 252  
253 253 // Get ARF table
254 254 const GFitsTable& table = *file.table("SPECRESP");
255   - GFitsHeader header = table.header();
256   -
257   - // Read low energy threshold
258   - if (header.contains("LO_THRES")){
259   - double m_lo_thres = std::stod(header["LO_THRES"]);
260   - }
261   -
262   - // Read high energy threshold
263   - if (header.contains("HI_THRES")){
264   - double m_hi_thres = std::stod(header["HI_THRES"]);
265   - }
266 255  
267 256 // Read ARF
268 257 read(table);
... ...