aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/BinaryParagraph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/BinaryParagraph.cpp')
-rw-r--r--toolsrc/src/BinaryParagraph.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/toolsrc/src/BinaryParagraph.cpp b/toolsrc/src/BinaryParagraph.cpp
index ad85a1f8a..8605cd276 100644
--- a/toolsrc/src/BinaryParagraph.cpp
+++ b/toolsrc/src/BinaryParagraph.cpp
@@ -1,3 +1,4 @@
+#include "pch.h"
#include "BinaryParagraph.h"
#include "vcpkglib_helpers.h"
#include "vcpkg_Checks.h"
@@ -22,22 +23,6 @@ namespace vcpkg
static const std::string DEPENDS = "Depends";
}
- static const std::vector<std::string>& get_list_of_valid_fields()
- {
- static const std::vector<std::string> valid_fields =
- {
- BinaryParagraphRequiredField::PACKAGE,
- BinaryParagraphRequiredField::VERSION,
- BinaryParagraphRequiredField::ARCHITECTURE,
-
- BinaryParagraphOptionalField::DESCRIPTION,
- BinaryParagraphOptionalField::MAINTAINER,
- BinaryParagraphOptionalField::DEPENDS
- };
-
- return valid_fields;
- }
-
BinaryParagraph::BinaryParagraph() = default;
BinaryParagraph::BinaryParagraph(std::unordered_map<std::string, std::string> fields)
@@ -70,7 +55,7 @@ namespace vcpkg
std::string BinaryParagraph::displayname() const
{
- return Strings::format("%s:%s", this->spec.name(), this->spec.target_triplet());
+ return this->spec.display_name();
}
std::string BinaryParagraph::dir() const