Skip to content

Commit

Permalink
Remove 2nd serialize/deserialize functions
Browse files Browse the repository at this point in the history
  • Loading branch information
AmishgaAlphonius committed Nov 27, 2023
1 parent cefff8a commit 39b60e2
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions include/core/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ announce_string(const ConditionalOStream &pcout,
pcout << std::string(expression.size() + 1, delimiter) << std::endl;
}


/**
* @brief Serializes a table using boost serialization feature
* the filename should contain the desired extension
Expand All @@ -311,21 +310,6 @@ serialize_table(const TableHandler &table, const std::string filename)
oa << table;
}

/**
* @brief Serializes a table using boost serialization feature
* the filename should contain the desired extension (2nd constructor)
*
* @param table The table to be serialized
* @param filename The file name (including the extension) to be used
*/
inline void
serialize_table(const ConvergenceTable &table, const std::string filename)
{
std::ofstream ofile(filename);
boost::archive::text_oarchive oa(ofile, boost::archive::no_header);
oa << table;
}

/**
* @brief Loads a table using boost serialization feature
* the filename should contain the desired extension
Expand All @@ -341,22 +325,6 @@ deserialize_table(TableHandler &table, const std::string filename)
ia >> table;
}


/**
* @brief Loads a table using boost serialization feature
* the filename should contain the desired extension (2nd constructor)
*
* @param table The table to be deserialized
* @param filename The file name (including the extension) to be used
*/
inline void
deserialize_table(ConvergenceTable &table, const std::string filename)
{
std::ifstream ifile(filename);
boost::archive::text_iarchive ia(ifile, boost::archive::no_header);
ia >> table;
}

/**
* @brief get the value of a particular parameter from the contents of the input
* file. Return an empty string if not found. This function is used to read an
Expand Down

0 comments on commit 39b60e2

Please sign in to comment.