r15448 - gnucash/trunk/src/report/report-gnome - Remove unused functions.

David Hampton hampton at cvs.gnucash.org
Sun Jan 28 01:20:44 EST 2007


Author: hampton
Date: 2007-01-28 01:20:43 -0500 (Sun, 28 Jan 2007)
New Revision: 15448
Trac: http://svn.gnucash.org/trac/changeset/15448

Modified:
   gnucash/trunk/src/report/report-gnome/window-report.c
   gnucash/trunk/src/report/report-gnome/window-report.h
Log:
Remove unused functions.

Modified: gnucash/trunk/src/report/report-gnome/window-report.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/window-report.c	2007-01-28 06:19:45 UTC (rev 15447)
+++ gnucash/trunk/src/report/report-gnome/window-report.c	2007-01-28 06:20:43 UTC (rev 15448)
@@ -61,26 +61,6 @@
   gnc_unset_busy_cursor (NULL);
 }
 
-void
-gnc_print_report (int report_id)
-{
-  gnc_html *html;
-  char * location;
-
-  html = gnc_html_new( GTK_WINDOW(gnc_ui_get_toplevel()) );
-
-  gnc_set_busy_cursor (NULL, TRUE);
-  location = g_strdup_printf("id=%d", report_id);  
-  gnc_html_show_url(html, URL_TYPE_REPORT, location, NULL, FALSE);
-  g_free(location);
-  gnc_unset_busy_cursor (NULL);
-
-  gnc_html_print (html);
-
-  gnc_html_destroy (html);
-}
-
-
 /********************************************************************
  * default parameters editor handling 
  ********************************************************************/
@@ -332,54 +312,3 @@
   gnc_html_register_url_handler (URL_TYPE_REPORT, gnc_html_report_url_cb);
   gnc_html_register_url_handler (URL_TYPE_HELP, gnc_html_help_url_cb);
 }
-
-
-void
-gnc_reports_show_all(QofSession *session)
-{
-  GKeyFile *keyfile;
-  const gchar *home, *url;
-  gchar *encoded_url, *mdi_file, *mdi_group, *value;
-  gchar **keys, **key;
-  gint report_id;
-
-  url = qof_session_get_url(session);
-  if (!url)
-    return;
-  encoded_url = gnc_html_encode_string(url);
-  if (!encoded_url)
-    return;
-
-  home = g_get_home_dir();
-  if (!home) {
-    g_free(encoded_url);
-    return;
-  }
-
-  mdi_file = g_build_filename(home, ".gnome", "GnuCash", (gchar *)NULL);
-  mdi_group = g_strdup_printf("MDI : %s", encoded_url);
-
-  keyfile = gnc_key_file_load_from_file (mdi_file, FALSE, FALSE);
-  if (keyfile) {
-    keys = g_key_file_get_keys(keyfile, mdi_group, NULL, NULL);
-    if (keys) {
-      for (key = keys; *key; key++) {
-	if (!strncmp(*key, MDI_CHILD_CONFIG, sizeof(MDI_CHILD_CONFIG)))
-	  continue;
-	value = g_key_file_get_string(keyfile, mdi_group, *key, NULL);
-	if (!value)
-	  continue;
-	if (sscanf(value, "gnc-report:id=%d", &report_id) == 1) {
-	  gnc_main_window_open_report(report_id, NULL);
-	}
-	g_free(value);
-      }
-      g_strfreev(keys);
-    }
-    g_key_file_free(keyfile);
-  }
-
-  g_free(mdi_file);
-  g_free(mdi_group);
-  g_free(encoded_url);
-}

Modified: gnucash/trunk/src/report/report-gnome/window-report.h
===================================================================
--- gnucash/trunk/src/report/report-gnome/window-report.h	2007-01-28 06:19:45 UTC (rev 15447)
+++ gnucash/trunk/src/report/report-gnome/window-report.h	2007-01-28 06:20:43 UTC (rev 15448)
@@ -39,12 +39,9 @@
 // [business-gnome/dialog-invoice.c;gnome/window-register.c]; and
 // scm-exposed; 3-liner which calls gnc_main_window_open_report after handling busy-cursor.
 void       reportWindow(int id);
-// window-register; scm-exposed
-void       gnc_print_report (int report_id);
 // scm-exposed; ~priv
 void       gnc_report_raise_editor(SCM report);
 // module[/plugin]-init
 void       gnc_report_init (void);
 
-void       gnc_reports_show_all (QofSession *session);
 #endif



More information about the gnucash-changes mailing list