Skip to content

Commit 1551ffa

Browse files
sammy-SCmeta-codesync[bot]
authored andcommitted
remove unused methods from MountingCoordinator (#54650)
Summary: Pull Request resolved: #54650 changelog: [internal] clean up unused methods. Reviewed By: rubennorte, javache Differential Revision: D87778293 fbshipit-source-id: 7ce7d4deb029f29b08f8b15da5ac62ba594f110d
1 parent a2e8bac commit 1551ffa

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

packages/react-native/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,6 @@ bool MountingCoordinator::waitForTransaction(
6868
lock, timeout, [this]() { return lastRevision_.has_value(); });
6969
}
7070

71-
void MountingCoordinator::updateBaseRevision(
72-
const ShadowTreeRevision& baseRevision) const {
73-
std::scoped_lock lock(mutex_);
74-
baseRevision_ = baseRevision;
75-
}
76-
77-
void MountingCoordinator::resetLatestRevision() const {
78-
std::scoped_lock lock(mutex_);
79-
lastRevision_.reset();
80-
}
81-
8271
std::optional<MountingTransaction> MountingCoordinator::pullTransaction(
8372
bool willPerformAsynchronously) const {
8473
TraceSection section("MountingCoordinator::pullTransaction");

packages/react-native/ReactCommon/react/renderer/mounting/MountingCoordinator.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ class MountingCoordinator final {
101101
* `MountingOverrideDelegate` only.
102102
*/
103103
public:
104-
void updateBaseRevision(const ShadowTreeRevision &baseRevision) const;
105-
void resetLatestRevision() const;
106-
107104
void setMountingOverrideDelegate(std::weak_ptr<const MountingOverrideDelegate> delegate) const;
108105

109106
/*
@@ -123,7 +120,6 @@ class MountingCoordinator final {
123120
*/
124121
void revoke() const;
125122

126-
private:
127123
const SurfaceId surfaceId_;
128124

129125
// Protects access to `baseRevision_`, `lastRevision_` and

0 commit comments

Comments
 (0)