Skip to content

Commit bf424a5

Browse files
Merge pull request #17 from tyBrave/sig
style:remove LOG of smartRefresh library
2 parents 8d19c51 + d19fcd2 commit bf424a5

File tree

5 files changed

+0
-12
lines changed

5 files changed

+0
-12
lines changed

harmony/smart_refresh_layout/src/main/cpp/Animation.h

-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ class Animation {
5151

5252
void UpdateLoop() {
5353
state_ = Animation_State::ANIMATION_RUN;
54-
LOG(INFO) << "[tyBrave] Animation startValue_: " << startValue_ << ";currentValue_:" << currentValue_;
5554
const double p0 = 0.1, p1 = 0.0, p2 = 0.58, p3 = 1.0; // CubicBezier控制点
5655
auto startTime = std::chrono::high_resolution_clock::now();
5756
for (double t = 0.0; t < 1.01; t += 0.01) {
@@ -95,7 +94,6 @@ class Animation {
9594
delete updateThread_; // 如果使用new分配,则需要delete释放
9695
updateThread_ = nullptr;
9796
}
98-
LOG(INFO) << "[tyBrave] Animation startValue_ssss cancelAnimation end";
9997
}
10098
};
10199
#endif // HARMONY_ANIMATION_H

harmony/smart_refresh_layout/src/main/cpp/PullToRefreshNode.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ namespace rnoh {
77
PullToRefreshNode::PullToRefreshNode()
88
: ArkUINode(NativeNodeApi::getInstance()->createNode(ArkUI_NodeType::ARKUI_NODE_COLUMN)),
99
m_headerArkUINodeHandle(nullptr), m_listArkUINodeHandle(nullptr), m_pullToRefreshNodeDelegate(nullptr) {
10-
// ArkUI_NumberValue columnFlexValue[] = {{.i32 = ARKUI_FLEX_ALIGNMENT_CENTER}};
11-
// ArkUI_AttributeItem columnFlexItem = {columnFlexValue, sizeof(columnFlexValue) / sizeof(ArkUI_NumberValue)};
12-
// NativeNodeApi::getInstance()->setAttribute(m_nodeHandle, NODE_COLUMN_JUSTIFY_CONTENT, &columnFlexItem);
1310
}
1411

1512
PullToRefreshNode::~PullToRefreshNode() {}

harmony/smart_refresh_layout/src/main/cpp/RNCClassicsHeaderComponentInstance.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ namespace rnoh {
8181
void RNCClassicsHeaderComponentInstance::onPropsChanged(SharedConcreteProps const &props) {
8282
if (props != nullptr) {
8383
// facebook::react::SharedColor headerColor = props->primaryColor;
84-
// LOG(INFO) << "[tyBrave] <SmartRefreshLayoutComponentInstance ---------------" <<
85-
// props->accentColor
86-
// << ";sss:" << props->primaryColor;
8784
// if (props->accentColor) {
8885
// textNode.setFontColor(props->accentColor);
8986
// imageNode.setTintColor(props->accentColor);

harmony/smart_refresh_layout/src/main/cpp/RNCDefaultHeaderComponentInstance.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ namespace rnoh {
5858
void RNCDefaultHeaderComponentInstance::onPropsChanged(SharedConcreteProps const &props) {
5959
if (props != nullptr) {
6060
facebook::react::SharedColor headerColor = props->primaryColor;
61-
LOG(INFO) << "[tyBrave] <SmartRefreshLayoutComponentInstance ---------------" << props->accentColor
62-
<< ";sss:" << props->primaryColor;
6361
if (props->accentColor) {
6462
textNode.setFontColor(props->accentColor);
6563
imageNode.setTintColor(props->accentColor);

harmony/smart_refresh_layout/src/main/cpp/SmartRefreshLayoutPackage.h

-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ namespace rnoh {
4343
using ComponentInstanceFactoryDelegate::ComponentInstanceFactoryDelegate;
4444

4545
ComponentInstance::Shared create(ComponentInstance::Context ctx) override {
46-
LOG(INFO) << "[tyBrave] <SmartRefreshLayoutPackageComponentInstanceFactoryDelegate s------:"
47-
<< ctx.componentName;
4846
if (ctx.componentName == "RNCAnyHeader") {
4947
globalHeaderType = "RNCAnyHeader";
5048
return std::make_shared<RNCAnyHeaderComponentInstance>(std::move(ctx));

0 commit comments

Comments
 (0)