r21191 - gnucash/trunk/src/libqof/qof - Delete unused functions from qofbook.c

John Ralls jralls at code.gnucash.org
Fri Aug 19 23:44:50 EDT 2011


Author: jralls
Date: 2011-08-19 23:44:50 -0400 (Fri, 19 Aug 2011)
New Revision: 21191
Trac: http://svn.gnucash.org/trac/changeset/21191

Modified:
   gnucash/trunk/src/libqof/qof/qofbook.c
   gnucash/trunk/src/libqof/qof/qofbook.h
Log:
Delete unused functions from qofbook.c

Modified: gnucash/trunk/src/libqof/qof/qofbook.c
===================================================================
--- gnucash/trunk/src/libqof/qof/qofbook.c	2011-08-20 03:44:40 UTC (rev 21190)
+++ gnucash/trunk/src/libqof/qof/qofbook.c	2011-08-20 03:44:50 UTC (rev 21191)
@@ -151,21 +151,9 @@
 
     LEAVE ("book=%p", book);
 }
-
 /* ====================================================================== */
-/* XXX this should probably be calling is_equal callbacks on gncObject */
 
 gboolean
-qof_book_equal (const QofBook *book_1, const QofBook *book_2)
-{
-    if (book_1 == book_2) return TRUE;
-    if (!book_1 || !book_2) return FALSE;
-    return FALSE;
-}
-
-/* ====================================================================== */
-
-gboolean
 qof_book_not_saved (const QofBook *book)
 {
     if (!book) return FALSE;
@@ -207,15 +195,6 @@
     }
 }
 
-void
-qof_book_print_dirty (const QofBook *book)
-{
-    if (qof_instance_get_dirty_flag(book))
-        printf("book is dirty.\n");
-    qof_book_foreach_collection
-    (book, (QofCollectionForeachCB)qof_collection_print_dirty, NULL);
-}
-
 time_t
 qof_book_get_dirty_time (const QofBook *book)
 {
@@ -377,33 +356,6 @@
     book->book_open = 'n';
 }
 
-gchar qof_book_get_open_marker(const QofBook *book)
-{
-    if (!book)
-    {
-        return 'n';
-    }
-    return book->book_open;
-}
-
-gint32 qof_book_get_version (const QofBook *book)
-{
-    if (!book)
-    {
-        return -1;
-    }
-    return book->version;
-}
-
-void qof_book_set_version (QofBook *book, gint32 version)
-{
-    if (!book && version < 0)
-    {
-        return;
-    }
-    book->version = version;
-}
-
 gint64
 qof_book_get_counter (QofBook *book, const char *counter_name)
 {
@@ -721,15 +673,6 @@
 //  gnc_engine_signal_commit_error( errcode );
 }
 
-#if 0
-static void lot_free(QofInstance* inst)
-{
-    GNCLot* lot = GNC_LOT(inst);
-
-    gnc_lot_free(lot);
-}
-#endif
-
 static void noop (QofInstance *inst) {}
 
 void

Modified: gnucash/trunk/src/libqof/qof/qofbook.h
===================================================================
--- gnucash/trunk/src/libqof/qof/qofbook.h	2011-08-20 03:44:40 UTC (rev 21190)
+++ gnucash/trunk/src/libqof/qof/qofbook.h	2011-08-20 03:44:50 UTC (rev 21191)
@@ -279,11 +279,6 @@
  * is marked 'dirty'. */
 void qof_book_kvp_changed (QofBook *book);
 
-/** The qof_book_equal() method returns TRUE if books are equal.
- * XXX this routine is broken, and does not currently compare data.
- */
-gboolean qof_book_equal (const QofBook *book_1, const QofBook *book_2);
-
 /** This will get the named counter for this book. The return value is
  *    -1 on error or the current value of the counter.
  */



More information about the gnucash-changes mailing list