GNOME Bugzilla – Bug 383686
Remove redundant code that is now in GLib
Last modified: 2013-09-14 16:49:23 UTC
As of EDS 1.9.1, GLib 2.10 is a build requirement. This means that a lot of duplicated code in EDS can be remove, such as the local implementation of e_util_mkdir_hier(). Attaching a series of patches to remove all of this.
Created attachment 77953 [details] [review] Deprecate e_util_mkdir_hier This patch deprecates e_util_mkdir_hier, makes it simply call g_mkdir_with_parents(), and changes EDS to use Glib directly.
Please review someone
Looks great, except I'd prefer to see #ifndef EDS_DISABLE_DEPRECATED int e_util_mkdir_hier (const char *path, mode_t mode); #endif in e-data-server-util.h, so that Gtk-Doc marks it as deprecated. (see libedataserver/e-msgport.h for other examples) Have you found any other functions like this? I'm on the hunt for them too.
Created attachment 85825 [details] [review] Revised patch This patch removes a few more uses of e_util_mkdir_hier, and wraps the prototype in DEPRECATED guards.
Looks good, thanks Ross!
Committed. Thanks!