summaryrefslogtreecommitdiff
path: root/src/configuration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r--src/configuration.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index 7d2b496f..3c9fab3c 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -301,20 +301,7 @@ void ConfigurationObject::writeToXML(xmlTextWriterPtr writer)
void Configuration::write()
{
- // Do not attempt to write to file that cannot be opened for writing
- FILE *testFile = fopen(mConfigPath.c_str(), "w");
- if (!testFile)
- {
- logger->log("Configuration::write() couldn't open %s for writing",
- mConfigPath.c_str());
- return;
- }
-
- fclose(testFile);
-
-
xmlTextWriterPtr writer = xmlNewTextWriterFilename(mConfigPath.c_str(), 0);
-
if (!writer)
{
logger->log("Configuration::write() error while creating writer");