GNOME Bugzilla – Bug 104532
duplicated APIs
Last modified: 2004-12-22 21:47:04 UTC
Package: gnome-vfs Severity: trivial Version: 2.2.0 Synopsis: duplicated APIs Bugzilla-Product: gnome-vfs Bugzilla-Component: URI handling Description: gnome-vfs-uri.h:gnome_vfs_uri_make_full_from_relative gnome-vfs-utils.h:gnome_vfs_make_uri_full_from_relative and those lines of code seems to be duplicated each other. why both? ------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-01-27 09:35 ------- Reassigning to the default owner of the component, gnome-vfs-maint@bugzilla.gnome.org.
With latest CVS HEAD, I don't have those duplicated functions, and the ChangeLog since 2.2.0 doesn't mention any changes in the two files you mentioned From gnome-vfs source dir: $ find . -name "*.[ch]" |xargs grep gnome_vfs_uri_make_full_from_relative ./libgnomevfs/gnome-vfs-uri.c: * gnome_vfs_uri_make_full_from_relative: ./libgnomevfs/gnome-vfs-uri.c:gnome_vfs_uri_make_full_from_relative (const char *base_uri, ./libgnomevfs/gnome-vfs-uri.h:char *gnome_vfs_uri_make_full_from_relative (const char *base_uri,
you've missed slight difference between two name of APIs; one is ...uri_make..., and other is ...make_uri...
Ooops, you are right, I wasn't paying enought attention, good catch :) For more duplication fun, make_full_uri_from_relative is also very similar to the 2 functions you mention...
Unfortunately, this couldn't be removed from gnome-vfs 2.2, so these two calls will have to stay :( The one from gnome-vfs-utils.h will be deprecated though
Fixed in CVS HEAD