mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Remove unreferenced RCTDefaultCxxLogFunction (#57085)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/57085 Nothing has accessed this in a while. Changelog: [General][Removed] Removed RCTDefaultCxxLogFunction Reviewed By: christophpurrer Differential Revision: D107636249 fbshipit-source-id: 2f993c4fe5b901e584aadf05e19042ac43efa111
This commit is contained in:
1 parent
3c4f57119b
commit
2b6f605b3c
5 files changed
-53
No files matched your search
@@ -1,16 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#import <logger/react_native_log.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
void RCTDefaultCxxLogFunction(ReactNativeLogLevel level, const char *message);
|
||||
|
||||
} // namespace facebook::react
|
||||
@@ -1,34 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#import "RCTDefaultCxxLogFunction.h"
|
||||
#import <React/RCTLog.h>
|
||||
#import <glog/logging.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
void RCTDefaultCxxLogFunction(ReactNativeLogLevel level, const char *message)
|
||||
{
|
||||
switch (level) {
|
||||
case ReactNativeLogLevelInfo:
|
||||
LOG(INFO) << message;
|
||||
RCTLogInfo(@"%@", [NSString stringWithUTF8String:message]);
|
||||
break;
|
||||
case ReactNativeLogLevelWarning:
|
||||
LOG(WARNING) << message;
|
||||
RCTLogWarn(@"%@", [NSString stringWithUTF8String:message]);
|
||||
break;
|
||||
case ReactNativeLogLevelError:
|
||||
LOG(ERROR) << message;
|
||||
RCTLogError(@"%@", [NSString stringWithUTF8String:message]);
|
||||
break;
|
||||
case ReactNativeLogLevelFatal:
|
||||
LOG(FATAL) << message;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace facebook::react
|
||||
@@ -3879,7 +3879,6 @@ uint8_t facebook::react::blueFromColor(facebook::react::SharedColor color) noexc
|
||||
uint8_t facebook::react::greenFromColor(facebook::react::SharedColor color) noexcept;
|
||||
uint8_t facebook::react::redFromColor(facebook::react::SharedColor color) noexcept;
|
||||
void facebook::react::FBReactNativeSpec_registerComponentDescriptorsFromCodegen(std::shared_ptr<const facebook::react::ComponentDescriptorProviderRegistry> registry);
|
||||
void facebook::react::RCTDefaultCxxLogFunction(ReactNativeLogLevel level, const char* message);
|
||||
void facebook::react::bindHasComponentProvider(facebook::jsi::Runtime& runtime, facebook::react::HasComponentProviderFunctionType&& provider);
|
||||
void facebook::react::bindNativeLogger(facebook::jsi::Runtime& runtime, facebook::react::Logger logger);
|
||||
void facebook::react::bindNativePerformanceNow(facebook::jsi::Runtime& runtime);
|
||||
|
||||
@@ -3864,7 +3864,6 @@ uint8_t facebook::react::blueFromColor(facebook::react::SharedColor color) noexc
|
||||
uint8_t facebook::react::greenFromColor(facebook::react::SharedColor color) noexcept;
|
||||
uint8_t facebook::react::redFromColor(facebook::react::SharedColor color) noexcept;
|
||||
void facebook::react::FBReactNativeSpec_registerComponentDescriptorsFromCodegen(std::shared_ptr<const facebook::react::ComponentDescriptorProviderRegistry> registry);
|
||||
void facebook::react::RCTDefaultCxxLogFunction(ReactNativeLogLevel level, const char* message);
|
||||
void facebook::react::bindHasComponentProvider(facebook::jsi::Runtime& runtime, facebook::react::HasComponentProviderFunctionType&& provider);
|
||||
void facebook::react::bindNativeLogger(facebook::jsi::Runtime& runtime, facebook::react::Logger logger);
|
||||
void facebook::react::bindNativePerformanceNow(facebook::jsi::Runtime& runtime);
|
||||
|
||||
@@ -3879,7 +3879,6 @@ uint8_t facebook::react::blueFromColor(facebook::react::SharedColor color) noexc
|
||||
uint8_t facebook::react::greenFromColor(facebook::react::SharedColor color) noexcept;
|
||||
uint8_t facebook::react::redFromColor(facebook::react::SharedColor color) noexcept;
|
||||
void facebook::react::FBReactNativeSpec_registerComponentDescriptorsFromCodegen(std::shared_ptr<const facebook::react::ComponentDescriptorProviderRegistry> registry);
|
||||
void facebook::react::RCTDefaultCxxLogFunction(ReactNativeLogLevel level, const char* message);
|
||||
void facebook::react::bindHasComponentProvider(facebook::jsi::Runtime& runtime, facebook::react::HasComponentProviderFunctionType&& provider);
|
||||
void facebook::react::bindNativeLogger(facebook::jsi::Runtime& runtime, facebook::react::Logger logger);
|
||||
void facebook::react::bindNativePerformanceNow(facebook::jsi::Runtime& runtime);
|
||||
|
||||
Reference in new issue
Block a user