r15044 - gnucash/trunk/src/gnome - Remove another unused function.

Chris Shoemaker chris at cvs.gnucash.org
Wed Oct 18 22:50:37 EDT 2006


Author: chris
Date: 2006-10-18 22:50:37 -0400 (Wed, 18 Oct 2006)
New Revision: 15044
Trac: http://svn.gnucash.org/trac/changeset/15044

Modified:
   gnucash/trunk/src/gnome/top-level.c
Log:
Remove another unused function.
I think I added this function on the swig-redo branch, but it turned out
to be obsoleted by the merge because we no longer read 1.8.x state files.


Modified: gnucash/trunk/src/gnome/top-level.c
===================================================================
--- gnucash/trunk/src/gnome/top-level.c	2006-10-19 02:05:03 UTC (rev 15043)
+++ gnucash/trunk/src/gnome/top-level.c	2006-10-19 02:50:37 UTC (rev 15044)
@@ -197,30 +197,11 @@
   return TRUE;
 }
 
-static void
-gnc_main_window_book_open_handler(QofSession *session)
-{
-    gchar *filename, *statefile;
-
-    filename = gnc_html_encode_string(qof_session_get_url(session));
-    if (!filename) return;
-
-    statefile = gnc_build_book_path(filename);
-    g_free(filename);
-    gfec_try_load(statefile);
-    g_free(statefile);
-}
-
 /** Restore all persistent program state.  This function finds the
  *  "new" state file associated with a specific book guid.  It then
  *  iterates through this state information, calling a helper function
  *  to recreate each open window.
  *
- *  If the "new" state file cannot be found, this function will open
- *  an account tree window and then attempt to invoke the old gnucash
- *  1.x state routines.  This provides a fluid transition for users
- *  from the old to the new state systems.
- *
  *  @note The name of the state file is based on the name of the data
  *  file, not the path name of the data file.  If there are multiple
  *  data files with the same name, the state files will be suffixed



More information about the gnucash-changes mailing list