X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=pscp.c;h=0b37def18797b250383c890f14ff54237f27238a;hb=9f9d72ec58642e91b4f93ee4405a8086ee2fb2f0;hp=1d4967e760bbecdd2ae72b1674901d7073738383;hpb=f7713d452d37e9b314af48bb295d418b185989b7;p=PuTTY.git diff --git a/pscp.c b/pscp.c index 1d4967e7..0b37def1 100644 --- a/pscp.c +++ b/pscp.c @@ -605,35 +605,6 @@ static char *colon(char *str) return (NULL); } -/* - * Return a pointer to the portion of str that comes after the last - * slash (or backslash or colon, if `local' is TRUE). - * - * This function has the annoying strstr() property of taking a const - * char * and returning a char *. You should treat it as if it was a - * pair of overloaded functions, one mapping mutable->mutable and the - * other const->const :-( - */ -static char *stripslashes(const char *str, int local) -{ - char *p; - - if (local) { - p = strchr(str, ':'); - if (p) str = p+1; - } - - p = strrchr(str, '/'); - if (p) str = p+1; - - if (local) { - p = strrchr(str, '\\'); - if (p) str = p+1; - } - - return (char *)str; -} - /* * Determine whether a string is entirely composed of dots. */