From b6cc82ce2ce29fc6314740836589baa7a7cb4556 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 10 May 2023 21:51:17 +0200 Subject: [PATCH] rm fcts isIntFile etc --- Device/IO/DataFormatUtil.cpp | 16 ---------------- Device/IO/DataFormatUtil.h | 9 --------- 2 files changed, 25 deletions(-) diff --git a/Device/IO/DataFormatUtil.cpp b/Device/IO/DataFormatUtil.cpp index 5bd1fcba51e..555ce29bf81 100644 --- a/Device/IO/DataFormatUtil.cpp +++ b/Device/IO/DataFormatUtil.cpp @@ -75,22 +75,6 @@ bool DataUtil::Format::isBZipped(const std::string& name) return BaseUtil::Filesystem::hasExtension(name, BzipExtension); } -bool DataUtil::Format::isIntFile(const std::string& file_name) -{ - return BaseUtil::Filesystem::hasExtension(uncompressedFilename(file_name), IntExtension); -} - -bool DataUtil::Format::isNicosFile(const std::string& file_name) -{ - return BaseUtil::Filesystem::hasExtension(uncompressedFilename(file_name), NicosExtension); -} - -bool DataUtil::Format::isTiffFile(const std::string& file_name) -{ - return BaseUtil::Filesystem::hasExtension(uncompressedFilename(file_name), TiffExtension) - || BaseUtil::Filesystem::hasExtension(uncompressedFilename(file_name), TiffExtension2); -} - //! Creates axis of certain type from input stream Scale* DataUtil::Format::parseScale(std::istream& input_stream) { diff --git a/Device/IO/DataFormatUtil.h b/Device/IO/DataFormatUtil.h index 56bd90b2b35..eaa236b9578 100644 --- a/Device/IO/DataFormatUtil.h +++ b/Device/IO/DataFormatUtil.h @@ -39,15 +39,6 @@ bool isGZipped(const std::string& name); //! Returns true if name contains *.bz2 extension bool isBZipped(const std::string& name); -//! Returns true if file name corresponds to BornAgain native format (compressed or not) -bool isIntFile(const std::string& file_name); - -//! Returns true if file name corresponds to Nicos format (compressed or not) -bool isNicosFile(const std::string& file_name); - -//! Returns true if file name corresponds to tiff file (can be also compressed) -bool isTiffFile(const std::string& file_name); - Scale* parseScale(std::istream& input_stream); void fillDatafield(Datafield* data, std::istream& input_stream); -- GitLab