aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toolsrc/include/vcpkg/metrics.h1
-rw-r--r--toolsrc/src/vcpkg/metrics.cpp11
2 files changed, 0 insertions, 12 deletions
diff --git a/toolsrc/include/vcpkg/metrics.h b/toolsrc/include/vcpkg/metrics.h
index d570624eb..f73c636cf 100644
--- a/toolsrc/include/vcpkg/metrics.h
+++ b/toolsrc/include/vcpkg/metrics.h
@@ -15,7 +15,6 @@ namespace vcpkg::Metrics
void track_metric(const std::string& name, double value);
void track_property(const std::string& name, const std::string& value);
- void track_property(const std::string& name, const std::wstring& value);
void upload(const std::string& payload);
void flush();
diff --git a/toolsrc/src/vcpkg/metrics.cpp b/toolsrc/src/vcpkg/metrics.cpp
index c93d47d6e..8f2575886 100644
--- a/toolsrc/src/vcpkg/metrics.cpp
+++ b/toolsrc/src/vcpkg/metrics.cpp
@@ -262,17 +262,6 @@ namespace vcpkg::Metrics
void Metrics::track_metric(const std::string& name, double value) { g_metricmessage.track_metric(name, value); }
- void Metrics::track_property(const std::string& name, const std::wstring& value)
- {
- // Note: this is not valid UTF-16 -> UTF-8, it just yields a close enough approximation for our purposes.
- std::string converted_value;
- converted_value.resize(value.size());
- std::transform(
- value.begin(), value.end(), converted_value.begin(), [](wchar_t ch) { return static_cast<char>(ch); });
-
- g_metricmessage.track_property(name, converted_value);
- }
-
void Metrics::track_property(const std::string& name, const std::string& value)
{
g_metricmessage.track_property(name, value);