From 0f4a72b49f766f861bc4e791f1c842a52f3cc524 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Fri, 26 Jan 2018 16:09:33 +0100 Subject: [PATCH] Remove unused file --- libgnucash/backend/dbi/CMakeLists.txt | 2 - libgnucash/backend/dbi/gncmod-backend-dbi.c | 83 --------------------- po/POTFILES.skip | 1 - 3 files changed, 86 deletions(-) delete mode 100644 libgnucash/backend/dbi/gncmod-backend-dbi.c diff --git a/libgnucash/backend/dbi/CMakeLists.txt b/libgnucash/backend/dbi/CMakeLists.txt index b3bb506c75..0ec2d39396 100644 --- a/libgnucash/backend/dbi/CMakeLists.txt +++ b/libgnucash/backend/dbi/CMakeLists.txt @@ -2,8 +2,6 @@ ADD_SUBDIRECTORY(test) -# Source file gncmod-backend-dbi.c does not appear to be use in Makefile.in, so not included here. - SET (backend_dbi_SOURCES gnc-backend-dbi.cpp gnc-dbisqlresult.cpp diff --git a/libgnucash/backend/dbi/gncmod-backend-dbi.c b/libgnucash/backend/dbi/gncmod-backend-dbi.c deleted file mode 100644 index 87846e08a5..0000000000 --- a/libgnucash/backend/dbi/gncmod-backend-dbi.c +++ /dev/null @@ -1,83 +0,0 @@ -/********************************************************************* - * gncmod-backend-dbi.c - * module definition/initialization for the dbi backend module - * - * @author Copyright (c) 2006-2008 Phil Longstaff - *********************************************************************/ -/********************************************************************\ - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU General Public License as * - * published by the Free Software Foundation; either version 2 of * - * the License, or (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License* - * along with this program; if not, contact: * - * * - * Free Software Foundation Voice: +1-617-542-5942 * - * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * - * Boston, MA 02110-1301, USA gnu@gnu.org * - * * -\********************************************************************/ - - -#include -#include -/* #include */ - -#include "gnc-module.h" -#include "gnc-module-api.h" - -/* version of the gnc module system interface we require */ -int gnc_module_system_interface = 0; - -/* module versioning uses libtool semantics. */ -int gnc_module_current = 0; -int gnc_module_revision = 0; -int gnc_module_age = 0; - - -static GNCModule engine; - -gchar* -gnc_module_path (void) -{ - return g_strdup ("gnucash/backend/dbi"); -} - -gchar* -gnc_module_description (void) -{ - return g_strdup ("The DBI/SQL backend for GnuCash"); -} - -int -gnc_module_init (int refcount) -{ - engine = gnc_module_load ("gnucash/engine", 0); - if (!engine) return FALSE; - - return TRUE; -} - -int -gnc_module_end (int refcount) -{ - int unload = TRUE; - - if (engine != NULL) - { - unload = gnc_module_unload (engine); - } - - if (refcount == 0) - { - engine = NULL; - } - - return unload; -} diff --git a/po/POTFILES.skip b/po/POTFILES.skip index 0051314698..591e9a2a94 100644 --- a/po/POTFILES.skip +++ b/po/POTFILES.skip @@ -1,6 +1,5 @@ # These are files that we don't want to translate, because they are # not distributed. -libgnucash/backend/dbi/gncmod-backend-dbi.c libgnucash/backend/xml/gncmod-backend-xml.c libgnucash/backend/xml/gncmod-backend-xml.cpp gnucash/gnome-utils/gnc-tree-model-selection.c