remove unused function
This commit is contained in:
parent
ad480780be
commit
f6299e1412
5 changed files with 8 additions and 37 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-07-12 [colin] 0.9.11cvs17.25
|
||||
|
||||
* src/folder.c
|
||||
* src/folder.h
|
||||
Remove unused function added by me in 0.9.11cvs17.10
|
||||
|
||||
2004-07-11 [colin] 0.9.11cvs17.24
|
||||
|
||||
* src/inc.c
|
||||
|
|
|
@ -18,3 +18,4 @@
|
|||
( cvs diff -u -r 1.149.2.8 -r 1.149.2.9 src/inc.c; cvs diff -u -r 1.94.2.16 -r 1.94.2.17 src/messageview.c; cvs diff -u -r 1.5.2.4 -r 1.5.2.5 src/noticeview.c; ) > 0.9.11cvs17.22.patchset
|
||||
( cvs diff -u -r 1.149.2.9 -r 1.149.2.10 src/inc.c; cvs diff -u -r 1.56.2.10 -r 1.56.2.11 src/pop.c; cvs diff -u -r 1.17.2.7 -r 1.17.2.8 src/pop.h; ) > 0.9.11cvs17.23.patchset
|
||||
( cvs diff -u -r 1.149.2.10 -r 1.149.2.11 src/inc.c; cvs diff -u -r 1.94.2.17 -r 1.94.2.18 src/messageview.c; cvs diff -u -r 1.56.2.11 -r 1.56.2.12 src/pop.c; cvs diff -u -r 1.17.2.8 -r 1.17.2.9 src/pop.h; ) > 0.9.11cvs17.24.patchset
|
||||
( cvs diff -u -r 1.213.2.6 -r 1.213.2.7 src/folder.c; cvs diff -u -r 1.87.2.6 -r 1.87.2.7 src/folder.h; ) > 0.9.11cvs17.25.patchset
|
||||
|
|
|
@ -13,7 +13,7 @@ INTERFACE_AGE=0
|
|||
BINARY_AGE=0
|
||||
EXTRA_VERSION=17
|
||||
EXTRA_RELEASE=
|
||||
EXTRA_GTK2_VERSION=.24
|
||||
EXTRA_GTK2_VERSION=.25
|
||||
|
||||
if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
|
||||
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}
|
||||
|
|
35
src/folder.c
35
src/folder.c
|
@ -1055,41 +1055,6 @@ FolderItem *folder_find_item_from_path(const gchar *path)
|
|||
return d[1];
|
||||
}
|
||||
|
||||
static gboolean folder_item_find_phys_func(GNode *node, gpointer data)
|
||||
{
|
||||
FolderItem *item = node->data;
|
||||
gpointer *d = data;
|
||||
const gchar *path = d[0];
|
||||
const gchar *physpath = g_strdup_printf("%s%s%s%s%s",
|
||||
get_home_dir(), G_DIR_SEPARATOR_S,
|
||||
LOCAL_FOLDER(item->folder)->rootpath,
|
||||
G_DIR_SEPARATOR_S, item->path);
|
||||
|
||||
if (path_cmp(path, physpath) != 0) {
|
||||
g_free(physpath);
|
||||
return FALSE;
|
||||
}
|
||||
g_free(physpath);
|
||||
d[1] = item;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
FolderItem *folder_find_item_from_phys_path(const gchar *path)
|
||||
{
|
||||
Folder *folder;
|
||||
gpointer d[2];
|
||||
|
||||
folder = folder_get_default_folder();
|
||||
g_return_val_if_fail(folder != NULL, NULL);
|
||||
|
||||
d[0] = (gpointer)path;
|
||||
d[1] = NULL;
|
||||
g_node_traverse(folder->node, G_PRE_ORDER, G_TRAVERSE_ALL, -1,
|
||||
folder_item_find_phys_func, d);
|
||||
return d[1];
|
||||
}
|
||||
|
||||
FolderItem *folder_find_child_item_by_name(FolderItem *item, const gchar *name)
|
||||
{
|
||||
GNode *node;
|
||||
|
|
|
@ -698,7 +698,6 @@ Folder *folder_find_from_path (const gchar *path);
|
|||
Folder *folder_find_from_name (const gchar *name,
|
||||
FolderClass *klass);
|
||||
FolderItem *folder_find_item_from_path (const gchar *path);
|
||||
FolderItem *folder_find_item_from_phys_path (const gchar *path);
|
||||
FolderClass *folder_get_class_from_string (const gchar *str);
|
||||
FolderItem *folder_find_child_item_by_name (FolderItem *item,
|
||||
const gchar *name);
|
||||
|
|
Loading…
Reference in a new issue