From 799b168243e6499ac01bf59e0656547f353a2589 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Tue, 23 Aug 2016 16:40:21 +0200 Subject: Cpp: Move tofuinfo from signature to userid * lang/cpp/src/key.cpp (UserID::tofuInfo): New. * lang/cpp/src/key.h: Update accordingly. * lang/cpp/src/tofuinfo.cpp: Remove dropped fields. * lang/cpp/src/tofuinfo.h: Update accordingly. * lang/cpp/src/verificationresult.cpp, lang/cpp/src/verificationresult.h: Remove tofu info. * lang/qt/tests/t-tofuinfo.cpp: Disable for now. -- With be4ff75d7 Tofu info now lives with a UserID Object. While this breaks API it was not yet released. --- lang/cpp/src/verificationresult.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'lang/cpp/src/verificationresult.cpp') diff --git a/lang/cpp/src/verificationresult.cpp b/lang/cpp/src/verificationresult.cpp index 3eb8a850..c32c8964 100644 --- a/lang/cpp/src/verificationresult.cpp +++ b/lang/cpp/src/verificationresult.cpp @@ -24,7 +24,6 @@ #include #include "result_p.h" #include "util.h" -#include "tofuinfo.h" #include @@ -82,11 +81,6 @@ public: } nota.back().push_back(n); } - // copy tofu info: - tinfos.push_back(std::vector()); - for (gpgme_tofu_info_t in = is->tofu; in ; in = in->next) { - tinfos.back().push_back(TofuInfo(in)); - } } } ~Private() @@ -113,7 +107,6 @@ public: std::vector sigs; std::vector< std::vector > nota; - std::vector< std::vector > tinfos; std::vector purls; std::string file_name; }; @@ -373,15 +366,6 @@ std::vector GpgME::Signature::notations() const return result; } -std::vector GpgME::Signature::tofuInfo() const -{ - if (isNull()) { - return std::vector(); - } - - return d->tinfos[idx]; -} - class GpgME::Notation::Private { public: @@ -550,9 +534,6 @@ std::ostream &GpgME::operator<<(std::ostream &os, const Signature &sig) const std::vector nota = sig.notations(); std::copy(nota.begin(), nota.end(), std::ostream_iterator(os, "\n")); - const std::vector tinfos = sig.tofuInfo(); - std::copy(tinfos.begin(), tinfos.end(), - std::ostream_iterator(os, "\n")); } return os << ')'; } -- cgit v1.2.3