mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-quotes.cpp] remove sources_as_glist()
This commit is contained in:
parent
346499ae04
commit
770045c4a5
@ -103,7 +103,6 @@ public:
|
||||
|
||||
const std::string& version() noexcept { return m_quotesource->get_version(); }
|
||||
const QuoteSources& sources() noexcept { return m_sources; }
|
||||
GList* sources_as_glist ();
|
||||
bool had_failures() noexcept { return !m_failures.empty(); }
|
||||
const QFVec& failures() noexcept;
|
||||
std::string report_failures() noexcept;
|
||||
@ -296,16 +295,6 @@ m_sources{}, m_book{book}, m_dflt_curr{gnc_default_currency()}
|
||||
m_sources = m_quotesource->get_sources();
|
||||
}
|
||||
|
||||
GList*
|
||||
GncQuotesImpl::sources_as_glist()
|
||||
{
|
||||
GList* slist = nullptr;
|
||||
std::for_each (m_sources.rbegin(), m_sources.rend(),
|
||||
[&slist](const std::string& source) { slist = g_list_prepend (slist, g_strdup(source.c_str())); });
|
||||
return slist;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
GncQuotesImpl::fetch (QofBook *book)
|
||||
{
|
||||
@ -1081,11 +1070,6 @@ const QuoteSources& GncQuotes::sources() noexcept
|
||||
return m_impl->sources ();
|
||||
}
|
||||
|
||||
GList* GncQuotes::sources_as_glist ()
|
||||
{
|
||||
return m_impl->sources_as_glist ();
|
||||
}
|
||||
|
||||
GncQuotes::~GncQuotes() = default;
|
||||
|
||||
bool
|
||||
|
@ -109,13 +109,6 @@ public:
|
||||
*/
|
||||
const QuoteSources& sources() noexcept;
|
||||
|
||||
/** Get the available Finance::Quote sources as a GList
|
||||
*
|
||||
* @return A double-linked list containing the names of the installed quote sources.
|
||||
* @note the list and its contents are owned by the caller and should be freed with `g_list_free_full(list, g_free)`.
|
||||
*/
|
||||
GList* sources_as_glist () ;
|
||||
|
||||
/** Report if there were quotes requested but not retrieved.
|
||||
*
|
||||
* @returns True if there were quote failures.
|
||||
|
Loading…
Reference in New Issue
Block a user