From eb39a483a36ca87c432293c9d700236d674d4fdc Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Fri, 27 Nov 2020 05:58:14 -0500 Subject: [PATCH] Remove long-deprecated functions mdb_init() and mdb_exit() have done nothing for a while. mdb_get_coltype_string() and mdb_coltype_takes_length() were previously removed, but remained in the header file by accident. --- NEWS | 4 ++++ include/mdbtools.h | 6 ------ src/libmdb/mem.c | 31 ------------------------------- 3 files changed, 4 insertions(+), 37 deletions(-) delete mode 100644 src/libmdb/mem.c diff --git a/NEWS b/NEWS index 5076e45..7dc3050 100644 --- a/NEWS +++ b/NEWS @@ -36,6 +36,10 @@ parameter, so that date formats can be set in a non-global fashion: The above function is the most common reason that old projects will fail to compile on 0.9, and the fix is straightforward. +The previously-deprecated functions mdb_init() and mdb_exit() have been +removed. These functions did nothing; any calls to them should be excised with +prejudice. + This release introduces a new CLI tool (mdb-queries) and deprecates mdb-array, mdb-header, and mdb-parsecsv. Several man pages have been added or otherwise brought up to date. diff --git a/include/mdbtools.h b/include/mdbtools.h index 7d4897c..e17e414 100644 --- a/include/mdbtools.h +++ b/include/mdbtools.h @@ -450,10 +450,6 @@ typedef struct { MdbAny value; } MdbSarg; -/* mem.c */ -extern MDB_DEPRECATED(void, mdb_init(void)); -extern MDB_DEPRECATED(void, mdb_exit(void)); - /* version.c */ const char *mdb_get_version(void); @@ -533,8 +529,6 @@ int mdb_read_row(MdbTableDef *table, unsigned int row); void mdb_buffer_dump(const void *buf, off_t start, size_t len); /* backend.c */ -MDB_DEPRECATED(char*, mdb_get_coltype_string(MdbBackend *backend, int col_type)); -MDB_DEPRECATED(int, mdb_coltype_takes_length(MdbBackend *backend, int col_type)); void mdb_init_backends(MdbHandle *mdb); void mdb_remove_backends(MdbHandle *mdb); const MdbBackendType* mdb_get_colbacktype(const MdbColumn *col); diff --git a/src/libmdb/mem.c b/src/libmdb/mem.c deleted file mode 100644 index 6f871cd..0000000 --- a/src/libmdb/mem.c +++ /dev/null @@ -1,31 +0,0 @@ -/* MDB Tools - A library for reading MS Access database files - * Copyright (C) 2000 Brian Bruns - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library 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 - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "mdbtools.h" - -MDB_DEPRECATED(void, -mdb_init()) -{ - fprintf(stderr, "mdb_init() is DEPRECATED and does nothing. Stop calling it.\n"); -} - -MDB_DEPRECATED(void, -mdb_exit()) -{ - fprintf(stderr, "mdb_exit() is DEPRECATED and does nothing. Stop calling it.\n"); -}