From 65e2639de4129d699ea4ad614c8e01da10295b3e Mon Sep 17 00:00:00 2001 From: John Ralls Date: Tue, 2 Jun 2020 10:54:09 -0700 Subject: [PATCH] Delete QOF_STDOUT. Apparently a hack for the long-gone QSF backend. --- libgnucash/backend/xml/gnc-backend-xml.cpp | 5 ----- libgnucash/engine/qofsession.h | 17 ----------------- 2 files changed, 22 deletions(-) diff --git a/libgnucash/backend/xml/gnc-backend-xml.cpp b/libgnucash/backend/xml/gnc-backend-xml.cpp index 4dbf00042e..10a0d7cd8e 100644 --- a/libgnucash/backend/xml/gnc-backend-xml.cpp +++ b/libgnucash/backend/xml/gnc-backend-xml.cpp @@ -129,11 +129,6 @@ QofXmlBackendProvider::type_check (const char *uri) } filename = gnc_uri_get_path (uri); - if (0 == g_strcmp0 (filename, QOF_STDOUT)) - { - result = FALSE; - goto det_exit; - } t = g_fopen (filename, "r"); if (!t) { diff --git a/libgnucash/engine/qofsession.h b/libgnucash/engine/qofsession.h index 88b7b25468..371dbcc758 100644 --- a/libgnucash/engine/qofsession.h +++ b/libgnucash/engine/qofsession.h @@ -259,23 +259,6 @@ void qof_session_end (QofSession *session); /** @} */ -/** \brief Allow session data to be printed to stdout - -book_id can't be NULL and we do need to have an access_method, -so use one to solve the other. - -To print a session to stdout, use ::qof_session_begin. Example: - -\a qof_session_begin(session,QOF_STDOUT,TRUE,FALSE); - -When you call qof_session_save(session, NULL), the output will appear -on stdout and can be piped or redirected to other processes. - -Currently, only the QSF backend supports writing to stdout, other -backends may return a ::QofBackendError. -*/ -#define QOF_STDOUT ">" - /** @name Event Handling @{ */