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
mu_util_supports (MuFeature feature)
{
/* check for Guile support */
#ifndef BUILD_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);
enum _MuFeature {
MU_FEATURE_GUILE = 1 << 0, /* do we support Guile 2.0? */
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;
/**
* Check whether mu supports some particular feature
*

View File

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