diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-12-01 01:37:41 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-12-01 01:37:41 -0800 |
| commit | 89aaf195fbdfa63708fd6ac90103cac0cdedf3c6 (patch) | |
| tree | 2186c9340cb0370a4d6957b08e9e399cf5548cda | |
| parent | 936d74d6f71b26057c8afa04b3581a05afaed4d3 (diff) | |
| download | vcpkg-89aaf195fbdfa63708fd6ac90103cac0cdedf3c6.tar.gz vcpkg-89aaf195fbdfa63708fd6ac90103cac0cdedf3c6.zip | |
Remove unused variable
| -rw-r--r-- | toolsrc/include/vcpkg.h | 4 | ||||
| -rw-r--r-- | toolsrc/src/vcpkg.cpp | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/toolsrc/include/vcpkg.h b/toolsrc/include/vcpkg.h index 832fb1920..2fc993616 100644 --- a/toolsrc/include/vcpkg.h +++ b/toolsrc/include/vcpkg.h @@ -7,19 +7,17 @@ namespace vcpkg { - extern bool g_do_dry_run; - StatusParagraphs database_load_check(const vcpkg_paths& paths); void install_package(const vcpkg_paths& paths, const BinaryParagraph& binary_paragraph, StatusParagraphs& status_db); void deinstall_package(const vcpkg_paths& paths, const package_spec& spec, StatusParagraphs& status_db); expected<SourceParagraph> try_load_port(const fs::path& control_path); + inline expected<SourceParagraph> try_load_port(const vcpkg_paths& paths, const std::string& name) { return try_load_port(paths.ports / name); } expected<BinaryParagraph> try_load_cached_package(const vcpkg_paths& paths, const package_spec& spec); - } // namespace vcpkg diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp index c198365e1..6c34497b2 100644 --- a/toolsrc/src/vcpkg.cpp +++ b/toolsrc/src/vcpkg.cpp @@ -17,8 +17,6 @@ using namespace vcpkg; -bool vcpkg::g_do_dry_run = false; - static StatusParagraphs load_current_database(const fs::path& vcpkg_dir_status_file, const fs::path& vcpkg_dir_status_file_old) { if (!fs::exists(vcpkg_dir_status_file)) |
