File tree Expand file tree Collapse file tree 3 files changed +0
-24
lines changed Expand file tree Collapse file tree 3 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ cat >.vscode/settings.json.new <<\EOF ||
92
92
"isexe",
93
93
"iskeychar",
94
94
"kompare",
95
- "mksnpath",
96
95
"mktag",
97
96
"mktree",
98
97
"mmblob",
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ static int get_st_mode_bits(const char *path, int *mode)
28
28
return 0 ;
29
29
}
30
30
31
- static char bad_path [] = "/bad-path/" ;
32
-
33
31
static struct strbuf * get_pathname (void )
34
32
{
35
33
static struct strbuf pathname_array [4 ] = {
@@ -59,21 +57,6 @@ static void strbuf_cleanup_path(struct strbuf *sb)
59
57
strbuf_remove (sb , 0 , path - sb -> buf );
60
58
}
61
59
62
- char * mksnpath (char * buf , size_t n , const char * fmt , ...)
63
- {
64
- va_list args ;
65
- unsigned len ;
66
-
67
- va_start (args , fmt );
68
- len = vsnprintf (buf , n , fmt , args );
69
- va_end (args );
70
- if (len >= n ) {
71
- strlcpy (buf , bad_path , n );
72
- return buf ;
73
- }
74
- return (char * )cleanup_path (buf );
75
- }
76
-
77
60
static int dir_prefix (const char * buf , const char * dir )
78
61
{
79
62
int len = strlen (dir );
Original file line number Diff line number Diff line change @@ -23,12 +23,6 @@ const char *mkpath(const char *fmt, ...)
23
23
char * mkpathdup (const char * fmt , ...)
24
24
__attribute__((format (printf , 1 , 2 )));
25
25
26
- /*
27
- * Construct a path and place the result in the provided buffer `buf`.
28
- */
29
- char * mksnpath (char * buf , size_t n , const char * fmt , ...)
30
- __attribute__((format (printf , 3 , 4 )));
31
-
32
26
/*
33
27
* The `git_common_path` family of functions will construct a path into a
34
28
* repository's common git directory, which is shared by all worktrees.
You can’t perform that action at this time.
0 commit comments