summaryrefslogtreecommitdiffstats
path: root/src/if_cscope.c
diff options
context:
space:
mode:
authorMartin Tournoij <martin@arp242.net>2021-07-24 13:57:29 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-24 13:57:29 +0200
commit1a3e5747b7df7ddda312bbfd18e04fc2122001fb (patch)
treedf3916d14b86db869aa32ce5a032e4d7dc09f0fa /src/if_cscope.c
parent5a234eb18e6e43408755bb24e813330306c11629 (diff)
patch 8.2.3208: dynamic library load error does not mention why it failedv8.2.3208
Problem: Dynamic library load error does not mention why it failed. Solution: Add the error message. (Martin Tournoij, closes #8621)
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r--src/if_cscope.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index f52316faec..815db55c19 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -1329,24 +1329,6 @@ clear_csinfo(int i)
#endif
}
-#ifndef UNIX
- static char *
-GetWin32Error(void)
-{
- char *msg = NULL;
- FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,
- NULL, GetLastError(), 0, (LPSTR)&msg, 0, NULL);
- if (msg != NULL)
- {
- // remove trailing \r\n
- char *pcrlf = strstr(msg, "\r\n");
- if (pcrlf != NULL)
- *pcrlf = '\0';
- }
- return msg;
-}
-#endif
-
/*
* Insert a new cscope database filename into the filelist.
*/