From 702c26de4a942c1e23c6457dacf320a126b69b06 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Tue, 26 Feb 2019 18:06:14 +0100
Subject: [PATCH] [A/FileIO/Gocad] GocadSGridReader: Rm unused function.

---
 .../FileIO/GocadIO/GocadSGridReader.cpp       | 24 -------------------
 .../FileIO/GocadIO/GocadSGridReader.h         |  1 -
 2 files changed, 25 deletions(-)

diff --git a/Applications/FileIO/GocadIO/GocadSGridReader.cpp b/Applications/FileIO/GocadIO/GocadSGridReader.cpp
index b1aad20ad22..cb2bb9a03a2 100644
--- a/Applications/FileIO/GocadIO/GocadSGridReader.cpp
+++ b/Applications/FileIO/GocadIO/GocadSGridReader.cpp
@@ -517,30 +517,6 @@ void GocadSGridReader::readElementPropertiesBinary()
     }
 }
 
-std::vector<int> GocadSGridReader::readFlagsBinary() const
-{
-    std::vector<int> result;
-    if (!_double_precision_binary)
-    {
-        result = BaseLib::readBinaryArray<int32_t>(_flags_fname,
-                                                   _index_calculator._n_nodes);
-        std::for_each(result.begin(), result.end(),
-                      [](int32_t& val) { BaseLib::swapEndianness(val); });
-    }
-    else
-    {
-        result = BaseLib::readBinaryArray<int>(_flags_fname,
-                                               _index_calculator._n_nodes);
-        std::for_each(result.begin(), result.end(),
-                      [](int& val) { BaseLib::swapEndianness(val); });
-    }
-
-    if (result.empty())
-        ERR("Reading of flags file '%s' failed.", _flags_fname.c_str());
-
-    return result;
-}
-
 std::vector<Bitset> GocadSGridReader::readRegionFlagsBinary() const
 {
     std::vector<Bitset> result;
diff --git a/Applications/FileIO/GocadIO/GocadSGridReader.h b/Applications/FileIO/GocadIO/GocadSGridReader.h
index 1c21b8a84ca..1d2a37d0c8b 100644
--- a/Applications/FileIO/GocadIO/GocadSGridReader.h
+++ b/Applications/FileIO/GocadIO/GocadSGridReader.h
@@ -64,7 +64,6 @@ private:
     void parseFaceSet(std::string& line, std::istream& in);
 
     void readNodesBinary();
-    std::vector<int> readFlagsBinary() const;
     std::vector<Bitset> readRegionFlagsBinary() const;
     void readElementPropertiesBinary();
     void mapRegionFlagsToCellProperties(std::vector<Bitset> const& rf);
-- 
GitLab