color: Remove some conditional code, the colord dep is new enough

This commit is contained in:
Richard Hughes 2013-02-04 11:47:05 +00:00
parent 4e33954d94
commit e759f28020

View file

@ -594,9 +594,7 @@ static gboolean
gcm_prefs_is_profile_suitable_for_device (CdProfile *profile, gcm_prefs_is_profile_suitable_for_device (CdProfile *profile,
CdDevice *device) CdDevice *device)
{ {
#if CD_CHECK_VERSION(0,1,14)
const gchar *data_source; const gchar *data_source;
#endif
CdProfileKind profile_kind_tmp; CdProfileKind profile_kind_tmp;
CdProfileKind profile_kind; CdProfileKind profile_kind;
CdColorspace profile_colorspace; CdColorspace profile_colorspace;
@ -617,13 +615,11 @@ gcm_prefs_is_profile_suitable_for_device (CdProfile *profile,
if (profile_kind_tmp != profile_kind) if (profile_kind_tmp != profile_kind)
goto out; goto out;
#if CD_CHECK_VERSION(0,1,14)
/* ignore the colorspace profiles */ /* ignore the colorspace profiles */
data_source = cd_profile_get_metadata_item (profile, data_source = cd_profile_get_metadata_item (profile,
CD_PROFILE_METADATA_DATA_SOURCE); CD_PROFILE_METADATA_DATA_SOURCE);
if (g_strcmp0 (data_source, CD_PROFILE_METADATA_DATA_SOURCE_STANDARD) == 0) if (g_strcmp0 (data_source, CD_PROFILE_METADATA_DATA_SOURCE_STANDARD) == 0)
goto out; goto out;
#endif
/* success */ /* success */
ret = TRUE; ret = TRUE;