mirror of https://github.com/djcb/mu.git
mu: remove obsolete MU_FEATURE_CRYPTO
This commit is contained in:
parent
3f4e0cff62
commit
c8b507f826
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue