refactor and cleanup
Change-Id: Ia59c83978c26cebe060a301ec37bacd805d36ef5
diff --git a/src/fileutils.cpp b/src/fileutils.cpp
index 8655f75..f3633ed 100644
--- a/src/fileutils.cpp
+++ b/src/fileutils.cpp
@@ -595,13 +595,13 @@
HANDLE h
= CreateFileA(path.c_str(), GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
if (h == INVALID_HANDLE_VALUE) {
- JAMI_WARN("Can not open file %s for erasing.", path.c_str());
+ // JAMI_WARN("Can not open file %s for erasing.", path.c_str());
return false;
}
LARGE_INTEGER size;
if (!GetFileSizeEx(h, &size)) {
- JAMI_WARN("Can not erase file %s: GetFileSizeEx() failed.", path.c_str());
+ // JAMI_WARN("Can not erase file %s: GetFileSizeEx() failed.", path.c_str());
CloseHandle(h);
return false;
}
@@ -618,7 +618,7 @@
try {
buffer = new char[ERASE_BLOCK];
} catch (std::bad_alloc& ba) {
- JAMI_WARN("Can not allocate buffer for erasing %s.", path.c_str());
+ // JAMI_WARN("Can not allocate buffer for erasing %s.", path.c_str());
CloseHandle(h);
return false;
}