Remove unused method.
[libdcp.git] / src / util.h
index ccbe6083a057ba3c86dbe5ffb8bf859311128c5a..8c4e475c094377ba2e97f10c8744da5fcd853b87 100644 (file)
@@ -85,11 +85,11 @@ extern std::string make_uuid ();
 
 /** Create a digest for a file
  *  @param filename File name
- *  @param progress Optional progress reporting function.  The function will be called
- *  with a progress value between 0 and 1
+ *  @param progress Optional progress reporting function, called with a number of bytes done
+ *  and a total number of bytes.
  *  @return Digest
  */
-extern std::string make_digest (boost::filesystem::path filename, boost::function<void (float)>);
+extern std::string make_digest(boost::filesystem::path filename, boost::function<void (int64_t, int64_t)>);
 
 extern std::string make_digest (ArrayData data);
 
@@ -120,12 +120,12 @@ extern int base64_decode (std::string const & in, unsigned char* out, int out_le
 extern boost::optional<boost::filesystem::path> relative_to_root (boost::filesystem::path root, boost::filesystem::path file);
 
 extern std::string file_to_string (boost::filesystem::path, uintmax_t max_length = 1048576);
+extern void write_string_to_file(std::string const& string, boost::filesystem::path const& path);
 
 /** @param key RSA private key in PEM format (optionally with -----BEGIN... / -----END...)
  *  @return SHA1 fingerprint of key
  */
 extern std::string private_key_fingerprint (std::string key);
-extern xmlpp::Node* find_child (xmlpp::Node const * node, std::string name);
 extern std::string openjpeg_version();
 extern std::string spaces (int n);
 extern void indent (xmlpp::Element* element, int initial);