diff options
| author | Billy O'Neal <bion@microsoft.com> | 2021-01-13 14:06:06 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-13 14:06:06 -0800 |
| commit | 8414e15973097e70fe40149e922c402799804b3d (patch) | |
| tree | ca46f3f317f0eef7924f3b76828868d51bb249cf /toolsrc/include | |
| parent | 4da47f758fb5e02fc017047e014d15174b85a848 (diff) | |
| download | vcpkg-8414e15973097e70fe40149e922c402799804b3d.tar.gz vcpkg-8414e15973097e70fe40149e922c402799804b3d.zip | |
[vcpkg] Use a tag file rather than conditional compilation to permanently disable metrics. (#15470)
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/commands.upload-metrics.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/toolsrc/include/vcpkg/commands.upload-metrics.h b/toolsrc/include/vcpkg/commands.upload-metrics.h index dcd855ffb..4cfb66092 100644 --- a/toolsrc/include/vcpkg/commands.upload-metrics.h +++ b/toolsrc/include/vcpkg/commands.upload-metrics.h @@ -1,13 +1,5 @@ #pragma once -#if !VCPKG_DISABLE_METRICS && defined(_WIN32) -#define VCPKG_ENABLE_X_UPLOAD_METRICS_COMMAND 1 -#else -#define VCPKG_ENABLE_X_UPLOAD_METRICS_COMMAND 0 -#endif // !VCPKG_DISABLE_METRICS && defined(_WIN32) - -#if VCPKG_ENABLE_X_UPLOAD_METRICS_COMMAND - #include <vcpkg/commands.interface.h> namespace vcpkg::Commands::UploadMetrics @@ -18,5 +10,3 @@ namespace vcpkg::Commands::UploadMetrics virtual void perform_and_exit(const VcpkgCmdArguments& args, Files::Filesystem& fs) const override; }; } - -#endif // VCPKG_ENABLE_X_UPLOAD_METRICS_COMMAND |
