Commit 509219a036ef0cbd22f148e48e36ae408960be8e

Authored by Jürgen Knödlseder
1 parent ea4cc4d4

Remove unused ctcubemask::check_infile() method.

src/ctcubemask/ctcubemask.cpp
... ... @@ -709,38 +709,6 @@ void ctcubemask::free_members(void)
709 709  
710 710  
711 711 /***********************************************************************//**
712   - * @brief Check input filename
713   - *
714   - * @param[in] filename File name.
715   - *
716   - * This method checks if the input FITS file is correct.
717   - ***************************************************************************/
718   -std::string ctcubemask::check_infile(const std::string& filename) const
719   -{
720   - // Initialise message string
721   - std::string message = "";
722   -
723   - // Open FITS file
724   - GFits file(filename);
725   -
726   - // Check for IMAGE HDU
727   - GFitsImage* image = NULL;
728   - try {
729   -
730   - // Get pointer to FITS image
731   - image = file.image("IMAGE");
732   - }
733   - catch (GException::fits_hdu_not_found& e) {
734   - message = "No \"IMAGE\" extension found in input file \""
735   - + m_outcube + "\".";
736   - }
737   -
738   - // Return
739   - return message;
740   -}
741   -
742   -
743   -/***********************************************************************//**
744 712 * @brief Set output file name.
745 713 *
746 714 * @param[in] filename Input file name.
... ...
src/ctcubemask/ctcubemask.hpp
... ... @@ -71,7 +71,6 @@ protected:
71 71 void free_members(void);
72 72 void get_parameters(void);
73 73 void apply_mask(GCTAObservation* obs);
74   - std::string check_infile(const std::string& filename) const;
75 74 std::string set_outfile_name(const std::string& filename) const;
76 75 void save_fits(void);
77 76 void save_xml(void);
... ...