From a98ad817600ebacf19393cde60febc22183f11af Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 14 Mar 2005 03:36:56 +0000 Subject: [PATCH] Got rid of some code in f_name_cmp() that tried to make all the dirname pointers to equivalent strings have identical pointers. --- flist.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/flist.c b/flist.c index 04133e20..2963cce5 100644 --- a/flist.c +++ b/flist.c @@ -1674,18 +1674,6 @@ int f_name_cmp(struct file_struct *f1, struct file_struct *f2) if (!*c2) { switch (state2) { case s_DIR: - if (state1 == s_SLASH && sorting_flist) { - int j; - /* Optimize for future comparisons. */ - for (j = 0; - j < sorting_flist->count; - j++) { - struct file_struct *fp - = sorting_flist->files[j]; - if (fp->dirname == f2->dirname) - fp->dirname = f1->dirname; - } - } state2 = s_SLASH; c2 = (uchar*)"/"; break; -- 2.34.1