mu: remove obsolete MU_FEATURE_CRYPTO

This commit is contained in:
Dirk-Jan C. Binnema
2020-11-15 17:03:24 +02:00
parent 3f4e0cff62
commit c8b507f826
3 changed files with 1 additions and 7 deletions

View File

@ -256,7 +256,6 @@ mu_util_is_local_file (const char* path)
gboolean gboolean
mu_util_supports (MuFeature feature) mu_util_supports (MuFeature feature)
{ {
/* check for Guile support */ /* check for Guile support */
#ifndef BUILD_GUILE #ifndef BUILD_GUILE
if (feature & MU_FEATURE_GUILE) if (feature & MU_FEATURE_GUILE)

View File

@ -211,15 +211,12 @@ gboolean mu_util_play (const char *path, gboolean allow_local,
gboolean mu_util_program_in_path (const char *prog); gboolean mu_util_program_in_path (const char *prog);
enum _MuFeature { enum _MuFeature {
MU_FEATURE_GUILE = 1 << 0, /* do we support Guile 2.0? */ MU_FEATURE_GUILE = 1 << 0, /* do we support Guile 2.0? */
MU_FEATURE_GNUPLOT = 1 << 1, /* do we have gnuplot installed? */ MU_FEATURE_GNUPLOT = 1 << 1, /* do we have gnuplot installed? */
MU_FEATURE_CRYPTO = 1 << 2 /* do we support crypto (Gmime >= 2.6) */
}; };
typedef enum _MuFeature MuFeature; typedef enum _MuFeature MuFeature;
/** /**
* Check whether mu supports some particular feature * Check whether mu supports some particular feature
* *

View File

@ -186,7 +186,6 @@ test_mu_util_supports (void)
#endif /*BUILD_GUILE*/ #endif /*BUILD_GUILE*/
g_assert_cmpuint (mu_util_supports (MU_FEATURE_GUILE), == ,has_guile); g_assert_cmpuint (mu_util_supports (MU_FEATURE_GUILE), == ,has_guile);
g_assert_cmpuint (mu_util_supports (MU_FEATURE_CRYPTO), == ,TRUE);
path = g_find_program_in_path ("gnuplot"); path = g_find_program_in_path ("gnuplot");
g_free (path); g_free (path);
@ -195,8 +194,7 @@ test_mu_util_supports (void)
path ? TRUE : FALSE); path ? TRUE : FALSE);
g_assert_cmpuint ( g_assert_cmpuint (
mu_util_supports (MU_FEATURE_GNUPLOT|MU_FEATURE_GUILE| mu_util_supports (MU_FEATURE_GNUPLOT|MU_FEATURE_GUILE),
MU_FEATURE_CRYPTO),
==, ==,
has_guile && path ? TRUE : FALSE); has_guile && path ? TRUE : FALSE);
} }