Disable support for the old binary file format.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14301 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-06-03 13:42:53 +00:00
parent 8ef848f7f8
commit 89f37371d9
6 changed files with 8 additions and 15 deletions

View File

@ -2232,8 +2232,6 @@ AC_CONFIG_FILES(po/Makefile.in
src/gnome-search/Makefile
src/import-export/Makefile
src/import-export/test/Makefile
src/import-export/binary-import/Makefile
src/import-export/binary-import/test/Makefile
src/import-export/qif-import/Makefile
src/import-export/qif/Makefile
src/import-export/qif/test/Makefile

View File

@ -7,3 +7,7 @@ src/backend/dwi/qofmap.c
src/gnome-utils/gnc-tree-model-selection.c
src/backend/file/gncmod-backend-file.c
src/gnome/schemas/apps_gnucash_dialog_scheduled_transctions.schemas.in
src/backend/file/io-gncbin-r.c
src/import-export/binary-import/binary-import.glade
src/import-export/binary-import/druid-commodity.c
src/import-export/binary-import/gncmod-binary-import.c

View File

@ -27,7 +27,6 @@ libgnc_backend_file_utils_la_SOURCES = \
gnc-schedxaction-xml-v2.c \
gnc-transaction-xml-v2.c \
io-example-account.c \
io-gncbin-r.c \
io-gncxml-gen.c \
io-gncxml-v1.c \
io-gncxml-v2.c \
@ -47,7 +46,6 @@ noinst_HEADERS = \
gnc-xml.h \
gnc-xml-helper.h \
io-example-account.h \
io-gncbin.h \
io-gncxml-gen.h \
io-gncxml.h \
io-gncxml-v2.h \

View File

@ -52,7 +52,6 @@
#include "gnc-filepath-utils.h"
#include "io-gncxml.h"
#include "io-gncbin.h"
#include "io-gncxml-v2.h"
#include "gnc-backend-file.h"
#include "gnc-gconf-utils.h"
@ -403,8 +402,6 @@ gnc_file_be_determine_file_type(const char *path)
}
} else if (gnc_is_xml_data_file(path)) {
return GNC_BOOK_XML1_FILE;
} else if (gnc_is_bin_file(path)) {
return GNC_BOOK_BIN_FILE;
}
return GNC_BOOK_NOT_OURS;
}
@ -426,7 +423,6 @@ gnc_determine_file_type (const char *path)
if (sbuf.st_size == 0) { PINFO (" empty file"); return TRUE; }
if(gnc_is_xml_data_file_v2(path, NULL)) { return TRUE; }
else if(gnc_is_xml_data_file(path)) { return TRUE; }
else if(gnc_is_bin_file(path)) { return TRUE; }
PINFO (" %s is not a gnc file", path);
return FALSE;
}
@ -868,10 +864,6 @@ gnc_file_be_load_from_file (QofBackend *bend, QofBook *book)
rc = qof_session_load_from_xml_file (book, be->fullpath);
if (FALSE == rc) error = ERR_FILEIO_PARSE_ERROR;
break;
case GNC_BOOK_BIN_FILE:
qof_session_load_from_binfile(book, be->fullpath);
error = gnc_get_binfile_io_error();
break;
default:
PWARN("File not any known type");
error = ERR_FILEIO_UNKNOWN_FILE_TYPE;

View File

@ -350,7 +350,6 @@ load_gnucash_modules()
{ "gnucash/register/ledger-core", 0, FALSE },
{ "gnucash/register/register-core", 0, FALSE },
{ "gnucash/register/register-gnome", 0, FALSE },
{ "gnucash/import-export/binary-import", 0, FALSE },
{ "gnucash/import-export/qif-import", 0, FALSE },
{ "gnucash/import-export/ofx", 0, TRUE },
{ "gnucash/import-export/mt940", 0, TRUE },

View File

@ -1,5 +1,7 @@
SUBDIRS = . schemas binary-import qif qif-import ${OFX_DIR} ${HBCI_DIR} ${MT940_DIR} log-replay test
DIST_SUBDIRS = schemas binary-import qif qif-import qif-io-core ofx hbci mt940 log-replay test
SUBDIRS = . schemas qif qif-import \
${OFX_DIR} ${HBCI_DIR} ${MT940_DIR} log-replay test
DIST_SUBDIRS = schemas qif qif-import qif-io-core \
ofx hbci mt940 log-replay test
pkglib_LTLIBRARIES=libgncmod-generic-import.la