From c802ba1f9880de5c6f907c76a33c114bd307a15c Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Sun, 23 Jun 2019 18:39:04 +0200 Subject: [PATCH] #4495 Active Cells : Remove unused function --- .../RifEclipseOutputFileTools.cpp | 27 ------------------- .../FileInterface/RifEclipseOutputFileTools.h | 2 -- 2 files changed, 29 deletions(-) diff --git a/ApplicationCode/FileInterface/RifEclipseOutputFileTools.cpp b/ApplicationCode/FileInterface/RifEclipseOutputFileTools.cpp index 764736e624..0d8771893b 100644 --- a/ApplicationCode/FileInterface/RifEclipseOutputFileTools.cpp +++ b/ApplicationCode/FileInterface/RifEclipseOutputFileTools.cpp @@ -517,33 +517,6 @@ bool RifEclipseOutputFileTools::isExportedFromIntersect(const ecl_file_type* ecl return false; } -//-------------------------------------------------------------------------------------------------- -/// -//-------------------------------------------------------------------------------------------------- -ecl_kw_type* RifEclipseOutputFileTools::createActnumFromPorv(ecl_file_type* ecl_file) -{ - std::string porv_kw("PORV"); - - if (ecl_file_has_kw(ecl_file, porv_kw.data())) - { - ecl_file_view_type* fileView = ecl_file_get_global_view(ecl_file); - - int keywordCount = ecl_file_get_num_named_kw(ecl_file, porv_kw.data()); - for (int index = 0; index < keywordCount; index++) - { - ecl_kw_type* fileKeyword = ecl_file_view_iget_named_kw(fileView, porv_kw.data(), index); - if (fileKeyword) - { - float porvLimit = 0.0f; - - return ecl_kw_alloc_actnum(fileKeyword, porvLimit); - } - } - } - - return nullptr; -} - //-------------------------------------------------------------------------------------------------- /// Convenience method to hide C fopen calls in #pragma declarations to avoid warnings on Windows //-------------------------------------------------------------------------------------------------- diff --git a/ApplicationCode/FileInterface/RifEclipseOutputFileTools.h b/ApplicationCode/FileInterface/RifEclipseOutputFileTools.h index 88e509ef07..5cd65f8e0b 100644 --- a/ApplicationCode/FileInterface/RifEclipseOutputFileTools.h +++ b/ApplicationCode/FileInterface/RifEclipseOutputFileTools.h @@ -78,8 +78,6 @@ public: static bool isExportedFromIntersect(const ecl_file_type* ecl_file); - static ecl_kw_type* createActnumFromPorv(ecl_file_type* ecl_file); - static FILE* fopen(const QString& filePath, const QString& mode); private: