[Pinfo-devel] r63 - pinfo/branches/cxx/src
Nathanael Nerode
neroden-guest at costa.debian.org
Mon Aug 29 02:35:19 UTC 2005
Author: neroden-guest
Date: 2005-08-29 02:35:19 +0000 (Mon, 29 Aug 2005)
New Revision: 63
Modified:
pinfo/branches/cxx/src/pinfo.cxx
Log:
Remove dead code.
Modified: pinfo/branches/cxx/src/pinfo.cxx
===================================================================
--- pinfo/branches/cxx/src/pinfo.cxx 2005-08-29 02:27:11 UTC (rev 62)
+++ pinfo/branches/cxx/src/pinfo.cxx 2005-08-29 02:35:19 UTC (rev 63)
@@ -44,8 +44,6 @@
/* strip `.info' suffix from "file" */
void strip_file_from_info_suffix(char *file);
-/* add `.info' suffix to "file" */
-char *addinfosuffix(char *file);
/* protect against bad, bad macros */
void checksu();
@@ -425,7 +423,6 @@
{
char *tmp;
fclose(id);
- /*tmp = addinfosuffix(work_return_value.file); */
tmp = strdup(work_return_value.file);
/* Reset global filenameprefix */
@@ -450,7 +447,6 @@
}
/* open back the old file */
strip_file_from_info_suffix(curfile);
- /*tmp = addinfosuffix(curfile); */
tmp = strdup(curfile);
id = openinfo(tmp, 0);
xfree(tmp);
@@ -562,22 +558,6 @@
}
}
-char *
-addinfosuffix(char *info)
-{
- char *withsuffix = (char*)xmalloc(strlen(info) + 150);
- strcpy(withsuffix, info);
- if (strlen(info) == 3)
- {
- if (strcmp("dir", info) != 0)
- strcat(withsuffix, ".info");
- }
- else
- strcat(withsuffix, ".info");
-
- return withsuffix;
-}
-
/*
* If pinfo was called by root then it should work as nobody.
* This protect us against .pso and .open macros which could
More information about the Pinfo-devel
mailing list