[beast: 5/6] BSE: remove largely unused BSE_*_VERSION defines
- From: Tim Janik <timj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [beast: 5/6] BSE: remove largely unused BSE_*_VERSION defines
- Date: Thu, 3 Nov 2016 20:52:05 +0000 (UTC)
commit f6d41d95f0486813656dbd12145a47aa6184f224
Author: Tim Janik <timj gnu org>
Date: Thu Nov 3 10:35:24 2016 +0100
BSE: remove largely unused BSE_*_VERSION defines
Signed-off-by: Tim Janik <timj gnu org>
bse/bsestorage.cc | 7 -------
bse/bsestorage.hh | 2 --
configure.ac | 3 ---
3 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/bse/bsestorage.cc b/bse/bsestorage.cc
index 4ff5ed5..4f5f134 100644
--- a/bse/bsestorage.cc
+++ b/bse/bsestorage.cc
@@ -350,13 +350,6 @@ storage_parse_bse_version (BseStorage *self)
if (!parsed_version)
bse_storage_warn (self, "ignoring invalid version string: %s", scanner->value.v_string);
parse_or_return (scanner, ')'); /* eat closing paren */
- if (0)
- printerr ("bse-version: code: %u.%u.%u file: %u.%u.%u feature(current):%d compat(current):%d
compat(-1):%d\n",
- BST_MAJOR_VERSION, BST_MINOR_VERSION, BST_MICRO_VERSION,
- self->major_version, self->minor_version, self->micro_version,
- BSE_STORAGE_VERSION (self, BST_MAJOR_VERSION, BST_MINOR_VERSION, BST_MICRO_VERSION),
- BSE_STORAGE_COMPAT (self, BST_MAJOR_VERSION, BST_MINOR_VERSION, BST_MICRO_VERSION),
- BSE_STORAGE_COMPAT (self, BST_MAJOR_VERSION, BST_MINOR_VERSION, BST_MICRO_VERSION - 1));
return G_TOKEN_NONE;
}
diff --git a/bse/bsestorage.hh b/bse/bsestorage.hh
index 041687e..6a7c893 100644
--- a/bse/bsestorage.hh
+++ b/bse/bsestorage.hh
@@ -15,8 +15,6 @@
/* --- macros --- */
-#define BSE_STORAGE_VERSION(self, vmaj, min, vmic) ( /* whether file uses >=vARGS features */ \
- BSE_VERSION_CMP (self->major_version, self->minor_version, self->micro_version, vmaj, min, vmic) >= 0)
#define BSE_STORAGE_COMPAT(self, vmaj, min, vmic) ( /* whether file needs <=vARGS compat code */ \
BSE_VERSION_CMP (self->major_version, self->minor_version, self->micro_version, vmaj, min, vmic) <= 0)
#define BSE_STORAGE_SELF_CONTAINED(st) ((BSE_OBJECT_FLAGS (st) & BSE_STORAGE_SELF_CONTAINED) != 0)
diff --git a/configure.ac b/configure.ac
index fefc049..e25d8fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,9 +29,6 @@ BST_VERSION="$PACKAGE_VERSION"
AC_SUBST(BEAST_VERSION)
AC_DEFINE_UNQUOTED(BST_ARCH_NAME, "$target", [Architecture Description])
AC_DEFINE_UNQUOTED(BST_VERSION, "$BST_VERSION", [Beast Version])
-AC_DEFINE_UNQUOTED(BSE_MAJOR_VERSION, $MAJOR, [Beast/Bse Major Version])
-AC_DEFINE_UNQUOTED(BSE_MINOR_VERSION, $MINOR, [Beast/Bse Minor Version])
-AC_DEFINE_UNQUOTED(BSE_MICRO_VERSION, $MICRO, [Beast/Bse Micro Version])
AC_DEFINE_UNQUOTED(BEAST_EXEC_POSTFIX, "-$MAJOR.$MINOR.$MICRO", [Beast executable postfix])
# For automake, we need to easily provide MAJOR.MINOR.MICRO and MAJOR_MINOR_MICRO:
AC_SUBST(MAJOR)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]