Author: abrander
Date: 2009-07-08 01:26:46 +0200 (Wed, 08 Jul 2009)
New Revision: 2578
Modified:
trunk/librawstudio/rs-icc-profile.c
Log:
Removed duplicate code in rs_icc_profile_new_from_file().
Modified: trunk/librawstudio/rs-icc-profile.c
===================================================================
--- trunk/librawstudio/rs-icc-profile.c 2009-07-07 23:13:47 UTC (rev 2577)
+++ trunk/librawstudio/rs-icc-profile.c 2009-07-07 23:26:46 UTC (rev 2578)
@@ -278,14 +278,8 @@
g_assert(path != NULL);
g_assert(path[0] == G_DIR_SEPARATOR);
- RSIccProfile *profile = g_object_new (RS_TYPE_ICC_PROFILE, NULL);
+ RSIccProfile *profile = g_object_new (RS_TYPE_ICC_PROFILE, "filename",
path, NULL);
- if (!read_from_file(profile, path))
- {
- g_object_unref(profile);
- profile = NULL;
- }
-
return profile;
}
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit