Remove unused local diff. Pointed out by htodd.

This commit is contained in:
maya 2020-10-19 07:44:52 +00:00
parent f29f78bf6e
commit 2256753ef0

View File

@ -406,33 +406,6 @@ add_cpp_remap_path (const char *arg)
++remap_pairs;
}
static const char *
cpp_remap_file (const char *arg, char **tmp_name)
{
char *result;
size_t i, len;
for (i = 0; i < remap_pairs; ++i) {
len = strlen (remap_src[i]);
if (strncmp (remap_src[i], arg, len))
continue;
if (arg[len] == '\0')
return remap_dst[i];
if (arg[len] != '/')
continue;
arg += len;
len = strlen (remap_dst[i]);
result = (char *) xmalloc (len + strlen (arg) + 1);
memcpy(result, remap_dst[i], len);
strcpy(result + len, arg);
*tmp_name = result;
return result;
}
return arg;
}
/* Helper function for builtin_macro. Returns the text generated by
a builtin macro. */
const uchar *