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
This commit is contained in:
Ingo Klöcker 2020-08-10 11:06:13 +02:00
parent 0676d41ef5
commit c813734c9c
2 changed files with 1 additions and 3 deletions

View File

@ -1527,7 +1527,7 @@ Error Context::startCreateSubkey(const Key &k, const char *algo,
k.impl(), algo, reserved, expires, flags)); k.impl(), algo, reserved, expires, flags));
} }
std::string Context::getLFSeparatedListOfFingerprintsFromSubkeys(const std::vector<Subkey> &subkeys) static std::string getLFSeparatedListOfFingerprintsFromSubkeys(const std::vector<Subkey> &subkeys)
{ {
if (subkeys.empty()) { if (subkeys.empty()) {
return std::string(); return std::string();

View File

@ -500,8 +500,6 @@ private:
// on the "Friendlyness" of context to access the gpgme types. // on the "Friendlyness" of context to access the gpgme types.
gpgme_key_t *getKeysFromRecipients(const std::vector<Key> &recipients); gpgme_key_t *getKeysFromRecipients(const std::vector<Key> &recipients);
std::string getLFSeparatedListOfFingerprintsFromSubkeys(const std::vector<Subkey> &subkeys);
private: private:
Private *const d; Private *const d;