Commit 8624151e00fb37e21aa1224de290a910604c210c

Authored by Jürgen Knödlseder
1 parent ed4235a6

Remove save() and write() methods.

We remove the save() and write() methods as they are not implemented so far. It's not clear whether we ever need them. So we remove them for the moment, as adding them later is always better than removing them later (in terms of interface change).
inst/cta/include/GCTAAeff2D.hpp
... ... @@ -62,12 +62,10 @@ public:
62 62 void clear(void);
63 63 GCTAAeff2D* clone(void) const;
64 64 void load(const std::string& filename);
65   - void save(const std::string& filename, const bool& clobber = false) const;
66 65 std::string print(void) const;
67 66  
68 67 // Methods
69 68 void read(const GFits* file);
70   - void write(GFits& file) const;
71 69  
72 70 private:
73 71 // Methods
... ...
inst/cta/pyext/GCTAAeff2D.i
... ... @@ -55,11 +55,9 @@ public:
55 55 void clear(void);
56 56 GCTAAeff2D* clone(void) const;
57 57 void load(const std::string& filename);
58   - void save(const std::string& filename, const bool& clobber = false) const;
59 58  
60 59 // Methods
61 60 void read(const GFits* file);
62   - void write(GFits& file) const;
63 61 };
64 62  
65 63  
... ...
inst/cta/src/GCTAAeff2D.cpp
... ... @@ -248,30 +248,6 @@ void GCTAAeff2D::load(const std::string& filename)
248 248  
249 249  
250 250 /***********************************************************************//**
251   - * @brief Save effective area into FITS file
252   - *
253   - * @param[in] filename FITS file.
254   - * @param[in] clobber Overwrite existing file?.
255   - *
256   - * This method saves the effective area information into a FITS file.
257   - ***************************************************************************/
258   -void GCTAAeff2D::save(const std::string& filename, const bool& clobber) const
259   -{
260   - // Open FITS file
261   - GFits fits(filename, true);
262   -
263   - // Write effective area into file
264   - write(fits);
265   -
266   - // Close FITS file
267   - fits.save(clobber);
268   -
269   - // Return
270   - return;
271   -}
272   -
273   -
274   -/***********************************************************************//**
275 251 * @brief Read effective area from FITS file
276 252 *
277 253 * @param[in] fits FITS file pointer.
... ... @@ -307,20 +283,6 @@ void GCTAAeff2D::read(const GFits* fits)
307 283  
308 284  
309 285 /***********************************************************************//**
310   - * @brief Write effective area into FITS file
311   - *
312   - * @param[in] fits FITS file.
313   - *
314   - * @todo Implement method.
315   - ***************************************************************************/
316   -void GCTAAeff2D::write(GFits& fits) const
317   -{
318   - // Return
319   - return;
320   -}
321   -
322   -
323   -/***********************************************************************//**
324 286 * @brief Print effective area information
325 287 *
326 288 * @return Content of effective area instance.
... ...