Garbage collect some old #ifdef'ed code from 1994 that causes vi's '%'

to be unable to find a match in Path_FindFile().
This commit is contained in:
David E. O'Brien 2009-11-17 16:26:45 +00:00
parent 3e6265f14d
commit 952ffdb9da
2 changed files with 0 additions and 27 deletions

View file

@ -832,21 +832,6 @@ Path_FindFile(char *name, struct Path *path)
* When searching for $(FILE), we will find it in $(INSTALLDIR)
* b/c we added it here. This is not good...
*/
#ifdef notdef
cp[-1] = '\0';
Path_AddDir(path, name);
cp[-1] = '/';
bigmisses += 1;
pe = TAILQ_LAST(path, Path);
if (pe == NULL)
return (NULL);
if (Hash_FindEntry(&pe->dir->files, cp) != NULL) {
return (estrdup(name));
return (NULL);
#else /* !notdef */
DEBUGF(DIR, ("Looking for \"%s\"...", name));
bigmisses += 1;
@ -864,7 +849,6 @@ Path_FindFile(char *name, struct Path *path)
DEBUGF(DIR, ("failed. Returning NULL\n"));
return (NULL);
}
#endif /* notdef */
}
/*-

View file

@ -1008,17 +1008,6 @@ JobFinish(Job *job, int *status)
if (!(job->flags & JOB_CONTINUING)) {
DEBUGF(JOB, ("Warning: process %jd was not "
"continuing.\n", (intmax_t) job->pid));
#ifdef notdef
/*
* We don't really want to restart a
* job from scratch just because it
* continued, especially not without
* killing the continuing process!
* That's why this is ifdef'ed out.
* FD - 9/17/90
*/
JobRestart(job);
#endif
}
job->flags &= ~JOB_CONTINUING;
TAILQ_INSERT_TAIL(&jobs, job, link);