remove folly::hash from textlayoutmanager module (#39514)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/39514

changelog: [internal]

Reviewed By: cipolleschi

Differential Revision: D49350125

fbshipit-source-id: 694533fbc4fb26cce8a1c8b8507d403f28c7840e
This commit is contained in:
Samuel Susla
2023-09-22 05:53:13 -07:00
committed by Facebook GitHub Bot
parent acea828e7a
commit 4221cba12d
@@ -7,12 +7,12 @@
#pragma once
#include <folly/Hash.h>
#include <react/renderer/attributedstring/AttributedString.h>
#include <react/renderer/attributedstring/ParagraphAttributes.h>
#include <react/renderer/core/LayoutConstraints.h>
#include <react/utils/FloatComparison.h>
#include <react/utils/SimpleThreadSafeCache.h>
#include <react/utils/hash_combine.h>
namespace facebook::react {
@@ -114,8 +114,7 @@ inline size_t textAttributesHashLayoutWise(
const TextAttributes& textAttributes) {
// Taking into account the same props as
// `areTextAttributesEquivalentLayoutWise` mentions.
return folly::hash::hash_combine(
0,
return facebook::react::hash_combine(
textAttributes.fontFamily,
textAttributes.fontSize,
textAttributes.fontSizeMultiplier,