Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 56b283c

Browse files
committed
Tweak
1 parent 6be2076 commit 56b283c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

runtime/runtime_controller.cc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,6 @@ bool RuntimeController::FlushRuntimeStateToIsolate() {
138138
pending_add_view_callbacks_.erase(view_id);
139139
}
140140

141-
// This is unexpected. Invalid view operations should have been caught by
142-
// `AddView`.
143141
if (!added) {
144142
FML_LOG(ERROR) << "Failed to flush view #" << view_id
145143
<< ". The Dart isolate may be in an inconsistent state.";
@@ -159,13 +157,6 @@ bool RuntimeController::FlushRuntimeStateToIsolate() {
159157
void RuntimeController::AddView(int64_t view_id,
160158
const ViewportMetrics& view_metrics,
161159
AddViewCallback callback) {
162-
if (platform_data_.viewport_metrics_for_views.find(view_id) !=
163-
platform_data_.viewport_metrics_for_views.end()) {
164-
FML_LOG(ERROR) << "View #" << view_id << " already exists.";
165-
callback(false);
166-
return;
167-
}
168-
169160
platform_data_.viewport_metrics_for_views[view_id] = view_metrics;
170161

171162
// If the Dart isolate is not running, |FlushRuntimeStateToIsolate| will

0 commit comments

Comments
 (0)