Skip to content

Commit 892fe1c

Browse files
authored
Merge pull request #784 from ikesyo/weakly-link-_os_log_set_nscf_formatter
2 parents 4d4bf20 + c1dfbb3 commit 892fe1c

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

CoreFoundation/Base.subproj/CFRuntime.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -955,14 +955,6 @@ pthread_t _CF_pthread_main_thread_np(void) {
955955

956956
#endif
957957

958-
#if DEPLOYMENT_RUNTIME_SWIFT && (DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED)
959-
typedef bool (*_os_log_NSCF_callback)(const void *obj, char *string_value, size_t string_sz, bool *publicData);
960-
extern void _os_log_set_nscf_formatter(_os_log_NSCF_callback function);
961-
bool os_log_callback(const void *obj, char *string_value, size_t string_sz, bool *publicData) {
962-
return false;
963-
}
964-
#endif
965-
966958

967959
#if DEPLOYMENT_TARGET_LINUX || DEPLOYMENT_TARGET_FREEBSD
968960
static void __CFInitialize(void) __attribute__ ((constructor));
@@ -1187,10 +1179,6 @@ void __CFInitialize(void) {
11871179

11881180
__CFProphylacticAutofsAccess = false;
11891181

1190-
#if DEPLOYMENT_RUNTIME_SWIFT && (DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED)
1191-
_os_log_set_nscf_formatter(&os_log_callback);
1192-
#endif
1193-
11941182
__CFInitializing = 0;
11951183
__CFInitialized = 1;
11961184
}

0 commit comments

Comments
 (0)