aboutsummaryrefslogtreecommitdiff
path: root/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'util.cpp')
-rw-r--r--util.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/util.cpp b/util.cpp
index 8f6bf38c4d..49f86d2de9 100644
--- a/util.cpp
+++ b/util.cpp
@@ -250,11 +250,6 @@ string strprintf(const char* format, ...)
if (p == NULL)
throw std::bad_alloc();
}
-#ifdef _MSC_VER
- // msvc optimisation
- if (p == buffer)
- return string(p, p+ret);
-#endif
string str(p, p+ret);
if (p != buffer)
delete p;