Remove deprecated g_file_contains_file.

2008-02-25  Alexander Larsson  <alexl@redhat.com>

        * gfile.[ch]:
	Remove deprecated g_file_contains_file.


svn path=/trunk/; revision=6585
This commit is contained in:
Alexander Larsson 2008-02-25 13:19:58 +00:00 committed by Alexander Larsson
parent ea678ee94c
commit 5d1de3eed1
3 changed files with 5 additions and 26 deletions

View File

@ -1,3 +1,8 @@
2008-02-25 Alexander Larsson <alexl@redhat.com>
* gfile.[ch]:
Remove deprecated g_file_contains_file.
2008-02-25 Alexander Larsson <alexl@redhat.com>
* gfilemonitor.c:

View File

@ -669,29 +669,6 @@ g_file_get_child_for_display_name (GFile *file,
return (* iface->get_child_for_display_name) (file, display_name, error);
}
#undef g_file_contains_file
/**
* g_file_contains_file:
* @parent: input #GFile.
* @descendant: input #GFile.
*
* Deprecated version of g_file_has_prefix().
*
* Returns: %TRUE if the @descendant's parent, grandparent, etc is @parent. %FALSE otherwise.
*
* Deprecated:2.16: The initial chosen name was unfortunate, as it
* may cause you to think this function did more than just
* filename comparisons.
*/
gboolean
g_file_contains_file (GFile *parent,
GFile *descendant)
{
/* This function is not in the header and will not be referenced by newly built code */
return g_file_has_prefix (descendant, parent);
}
/**
* g_file_has_prefix:
* @file: input #GFile.

View File

@ -580,9 +580,6 @@ GFile * g_file_get_child (GFile
GFile * g_file_get_child_for_display_name (GFile *file,
const char *display_name,
GError **error);
#ifndef G_DISABLE_DEPRECATED
#define g_file_contains_file(_parent, _child) g_file_has_prefix (_child, _parent)
#endif
gboolean g_file_has_prefix (GFile *file,
GFile *prefix);
char * g_file_get_relative_path (GFile *parent,