mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
Remove useless locking which aso used a function not available when additions are built standalone
This commit is contained in:
parent
2508bae63e
commit
667260aa26
1 changed files with 0 additions and 2 deletions
|
@ -3098,7 +3098,6 @@ GSPrivateNativeCStringEncoding()
|
|||
char *old;
|
||||
|
||||
/* Take it from the system locale information. */
|
||||
[GSPrivateGlobalLock() lock];
|
||||
/* Initialise locale system by setting current locale from
|
||||
* environment and then resetting it. Must be done before
|
||||
* any call to nl_langinfo()
|
||||
|
@ -3109,7 +3108,6 @@ GSPrivateNativeCStringEncoding()
|
|||
}
|
||||
strncpy(encbuf, nl_langinfo(CODESET), sizeof(encbuf)-1);
|
||||
encbuf[sizeof(encbuf)-1] = '\0';
|
||||
[GSPrivateGlobalLock() unlock];
|
||||
#else
|
||||
encbuf[0] = '\0';
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue