mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-03 04:09:20 +02:00
Remove definition of g_hash_table_freeze and g_hash_table_thaw. Instead
2001-04-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * ghash.c, ghash.h: Remove definition of g_hash_table_freeze and g_hash_table_thaw. Instead added G_DISABLE_DEPRECATED-guarded macros to ghash.h to go along the lines of the standard. * gscanner.c, gscanner.h: Dito for g_scanner_freeze_symbol_table and g_scanner_thaw_symbol_table. * gutils.c, gutils.h: Dito for g_dirname. g_basename is still defined in gutils.c, but declared ing gutils.h only G_DISABLE_DEPRECATED-guarded.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
4f5ea7fce3
commit
d52e5cd5cf
@@ -470,17 +470,6 @@ G_CONST_RETURN gchar*
|
||||
g_basename (const gchar *file_name)
|
||||
{
|
||||
register gchar *base;
|
||||
#if defined(G_ENABLE_DEBUG) && !defined(G_OS_WIN32)
|
||||
static gboolean first_call = TRUE;
|
||||
|
||||
if (first_call)
|
||||
{
|
||||
g_message ("g_basename is deprecated. Use g_path_get_basename instead. "
|
||||
"Beware that the string returned by g_path_get_basename() has "
|
||||
" to be g_free()ed.");
|
||||
first_call = FALSE;
|
||||
}
|
||||
#endif /* G_ENABLE_DEBUG */
|
||||
|
||||
g_return_val_if_fail (file_name != NULL, NULL);
|
||||
|
||||
@@ -628,22 +617,6 @@ g_path_get_dirname (const gchar *file_name)
|
||||
return base;
|
||||
}
|
||||
|
||||
gchar*
|
||||
g_dirname (const gchar *file_name)
|
||||
{
|
||||
#if defined(G_ENABLE_DEBUG) && !defined(G_OS_WIN32)
|
||||
static gboolean first_call = TRUE;
|
||||
|
||||
if (first_call)
|
||||
{
|
||||
g_message ("g_dirname() is deprecated. Use g_path_get_dirname() instead.");
|
||||
first_call = FALSE;
|
||||
}
|
||||
#endif /* G_ENABLE_DEBUG */
|
||||
|
||||
return g_path_get_dirname (file_name);
|
||||
}
|
||||
|
||||
gchar*
|
||||
g_get_current_dir (void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user