mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 15:23:45 +00:00
Removed unused function write_possibly_compressed.
This commit is contained in:
parent
cc46cec60a
commit
a555a1221f
@ -41,14 +41,6 @@ bool detect_format_and_read(config &cfg, std::istream &in, std::string* error_lo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_possibly_compressed(std::ostream &out, config &cfg, bool compress)
|
|
||||||
{
|
|
||||||
if (compress)
|
|
||||||
write_compressed(out, cfg);
|
|
||||||
else
|
|
||||||
write(out, cfg);
|
|
||||||
}
|
|
||||||
|
|
||||||
config_writer::config_writer(
|
config_writer::config_writer(
|
||||||
std::ostream &out, bool compress, int level) :
|
std::ostream &out, bool compress, int level) :
|
||||||
filter_(),
|
filter_(),
|
||||||
|
@ -37,9 +37,6 @@ class config;
|
|||||||
*/
|
*/
|
||||||
bool detect_format_and_read(config &cfg, std::istream &in, std::string* error_log=NULL); // Throws config::error
|
bool detect_format_and_read(config &cfg, std::istream &in, std::string* error_log=NULL); // Throws config::error
|
||||||
|
|
||||||
/** Writes a file, compressed or not depending on a flag. */
|
|
||||||
void write_possibly_compressed(std::ostream &out, config &cfg, bool compress);
|
|
||||||
|
|
||||||
/** Class for writing a config out to a file in pieces. */
|
/** Class for writing a config out to a file in pieces. */
|
||||||
class config_writer
|
class config_writer
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user