pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] pspp/src/ui/gui psppire-data-store.c psppire-da...


From: John Darrington
Subject: [Pspp-cvs] pspp/src/ui/gui psppire-data-store.c psppire-da...
Date: Thu, 05 Jul 2007 04:00:12 +0000

CVSROOT:        /sources/pspp
Module name:    pspp
Changes by:     John Darrington <jmd>   07/07/05 04:00:12

Modified files:
        src/ui/gui     : psppire-data-store.c psppire-data-store.h 

Log message:
        Get rid of unused function.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/src/ui/gui/psppire-data-store.c?cvsroot=pspp&r1=1.38&r2=1.39
http://cvs.savannah.gnu.org/viewcvs/pspp/src/ui/gui/psppire-data-store.h?cvsroot=pspp&r1=1.11&r2=1.12

Patches:
Index: psppire-data-store.c
===================================================================
RCS file: /sources/pspp/pspp/src/ui/gui/psppire-data-store.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- psppire-data-store.c        29 Jun 2007 05:14:32 -0000      1.38
+++ psppire-data-store.c        5 Jul 2007 04:00:12 -0000       1.39
@@ -25,7 +25,6 @@
 #define _(msgid) gettext (msgid)
 #define N_(msgid) msgid
 
-#include <data/casewriter.h>
 #include <data/datasheet.h>
 #include <data/data-out.h>
 #include <data/variable.h>
@@ -45,10 +44,6 @@
 #include <data/value-labels.h>
 #include <data/data-in.h>
 
-#include <data/file-handle-def.h>
-#include <data/sys-file-writer.h>
-
-
 
 static void psppire_data_store_init            (PsppireDataStore      
*data_store);
 static void psppire_data_store_class_init      (PsppireDataStoreClass *class);
@@ -650,43 +645,6 @@
 }
 
 
-
-/* FIXME: There's no reason to actually have this function.
-   It should be done by a procedure */
-void
-psppire_data_store_create_system_file (PsppireDataStore *store,
-                             struct file_handle *handle)
-{
-  gint i, var_cnt;
-  const struct sfm_write_options wo = {
-    true, /* writeable */
-    false, /* dont compress */
-    3 /* version */
-  };
-
-  struct casewriter *writer;
-
-  g_assert (handle);
-
-  writer = sfm_open_writer (handle, store->dict->dict, wo);
-
-  if ( ! writer)
-    return;
-
-
-  var_cnt = psppire_data_store_get_var_count (G_SHEET_MODEL (store));
-
-  for (i = 0 ; i < psppire_case_file_get_case_count (store->case_file); ++i )
-    {
-      struct ccase c;
-      psppire_case_file_get_case (store->case_file, i, &c);
-      casewriter_write (writer, &c);
-    }
-  casewriter_destroy (writer);
-}
-
-
-
 void
 psppire_data_store_clear (PsppireDataStore *data_store)
 {

Index: psppire-data-store.h
===================================================================
RCS file: /sources/pspp/pspp/src/ui/gui/psppire-data-store.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- psppire-data-store.h        29 Jun 2007 05:14:32 -0000      1.11
+++ psppire-data-store.h        5 Jul 2007 04:00:12 -0000       1.12
@@ -98,14 +98,8 @@
 
 void psppire_data_store_clear (PsppireDataStore *data_store);
 
-struct file_handle;
-
-void psppire_data_store_create_system_file (PsppireDataStore *store,
-                                           struct file_handle *handle);
-
 gboolean psppire_data_store_insert_new_case (PsppireDataStore *ds, gint posn);
 
-
 struct casereader * psppire_data_store_get_reader (PsppireDataStore *ds);
 
 gchar * psppire_data_store_get_string (PsppireDataStore *ds,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]