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

Commit 58778cc

Browse files
committed
more dead code
1 parent 3f72ff2 commit 58778cc

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

third_party/tonic/dart_state.cc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ DartState::Scope::~Scope() {}
2222
DartState::DartState(int dirfd,
2323
std::function<void(Dart_Handle)> message_epilogue)
2424
: isolate_(nullptr),
25-
private_constructor_name_(),
2625
class_library_(new DartClassLibrary),
2726
message_handler_(new DartMessageHandler()),
2827
file_loader_(new FileLoader(dirfd)),
@@ -37,12 +36,6 @@ void DartState::SetIsolate(Dart_Isolate isolate) {
3736
if (!isolate_)
3837
return;
3938

40-
private_constructor_name_.Clear();
41-
Dart_EnterScope();
42-
private_constructor_name_.Set(
43-
this, Dart_NewPersistentHandle(Dart_NewStringFromCString("_")));
44-
Dart_ExitScope();
45-
4639
DidSetIsolate();
4740
}
4841

third_party/tonic/dart_state.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ class DartState : public std::enable_shared_from_this<DartState> {
4949
Dart_Isolate isolate() { return isolate_; }
5050
void SetIsolate(Dart_Isolate isolate);
5151

52-
// TODO(https://github.com/flutter/flutter/issues/50997): Work around until we
53-
// drop the need for Dart_New in tonic.
54-
Dart_PersistentHandle private_constructor_name() {
55-
return private_constructor_name_.Get();
56-
}
57-
5852
DartClassLibrary& class_library() { return *class_library_; }
5953
DartMessageHandler& message_handler() { return *message_handler_; }
6054
FileLoader& file_loader() { return *file_loader_; }
@@ -76,7 +70,6 @@ class DartState : public std::enable_shared_from_this<DartState> {
7670

7771
private:
7872
Dart_Isolate isolate_;
79-
DartPersistentValue private_constructor_name_;
8073
std::unique_ptr<DartClassLibrary> class_library_;
8174
std::unique_ptr<DartMessageHandler> message_handler_;
8275
std::unique_ptr<FileLoader> file_loader_;

0 commit comments

Comments
 (0)