aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-11-07 17:56:40 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2016-11-07 17:56:40 -0800
commit1a1507a6039ce44220447d2b1ab723d631515b07 (patch)
tree1533573b7e7da1f442a37222a7d27262bcf9620f /toolsrc/src/vcpkg.cpp
parentd799762ea7a8e6790d06bfc64297f9896e12c3b4 (diff)
downloadvcpkg-1a1507a6039ce44220447d2b1ab723d631515b07.tar.gz
vcpkg-1a1507a6039ce44220447d2b1ab723d631515b07.zip
Move search_file() to commands_own.cpp
Diffstat (limited to 'toolsrc/src/vcpkg.cpp')
-rw-r--r--toolsrc/src/vcpkg.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp
index 729a0c8d5..00aea1e2e 100644
--- a/toolsrc/src/vcpkg.cpp
+++ b/toolsrc/src/vcpkg.cpp
@@ -369,28 +369,3 @@ void vcpkg::deinstall_package(const vcpkg_paths& paths, const package_spec& spec
write_update(paths, pkg);
System::println(System::color::success, "Package %s was successfully removed", pkg.package.displayname());
}
-
-void vcpkg::search_file(const vcpkg_paths& paths, const std::string& file_substr, const StatusParagraphs& status_db)
-{
- std::string line;
-
- for (auto&& pgh : status_db)
- {
- if (pgh->state != install_state_t::installed)
- continue;
-
- std::fstream listfile(paths.listfile_path(pgh->package));
- while (std::getline(listfile, line))
- {
- if (line.empty())
- {
- continue;
- }
-
- if (line.find(file_substr) != std::string::npos)
- {
- System::println("%s: %s", pgh->package.displayname(), line);
- }
- }
- }
-}