From c813734c9ce0a77f5a9d463a6b16074e522cc2ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 10 Aug 2020 11:06:13 +0200 Subject: [PATCH] cpp: Make private helper a file static * lang/cpp/src/context.h, lang/cpp/src/context.cpp (Context::getLFSeparatedListOfFingerprintsFromSubkeys): Remove from Context; make it a static function instead -- GnuPG-bug-id: 5003 --- lang/cpp/src/context.cpp | 2 +- lang/cpp/src/context.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 6b657f60..7b386801 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -1527,7 +1527,7 @@ Error Context::startCreateSubkey(const Key &k, const char *algo, k.impl(), algo, reserved, expires, flags)); } -std::string Context::getLFSeparatedListOfFingerprintsFromSubkeys(const std::vector &subkeys) +static std::string getLFSeparatedListOfFingerprintsFromSubkeys(const std::vector &subkeys) { if (subkeys.empty()) { return std::string(); diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index ebf5adb2..9cd35a5c 100644 --- a/lang/cpp/src/context.h +++ b/lang/cpp/src/context.h @@ -500,8 +500,6 @@ private: // on the "Friendlyness" of context to access the gpgme types. gpgme_key_t *getKeysFromRecipients(const std::vector &recipients); - std::string getLFSeparatedListOfFingerprintsFromSubkeys(const std::vector &subkeys); - private: Private *const d;