This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 2 files changed +0
-14
lines changed 2 files changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ DartState::Scope::~Scope() {}
22
22
DartState::DartState (int dirfd,
23
23
std::function<void (Dart_Handle)> message_epilogue)
24
24
: isolate_(nullptr ),
25
- private_constructor_name_(),
26
25
class_library_(new DartClassLibrary),
27
26
message_handler_(new DartMessageHandler()),
28
27
file_loader_(new FileLoader(dirfd)),
@@ -37,12 +36,6 @@ void DartState::SetIsolate(Dart_Isolate isolate) {
37
36
if (!isolate_)
38
37
return ;
39
38
40
- private_constructor_name_.Clear ();
41
- Dart_EnterScope ();
42
- private_constructor_name_.Set (
43
- this , Dart_NewPersistentHandle (Dart_NewStringFromCString (" _" )));
44
- Dart_ExitScope ();
45
-
46
39
DidSetIsolate ();
47
40
}
48
41
Original file line number Diff line number Diff line change @@ -49,12 +49,6 @@ class DartState : public std::enable_shared_from_this<DartState> {
49
49
Dart_Isolate isolate () { return isolate_; }
50
50
void SetIsolate (Dart_Isolate isolate);
51
51
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
-
58
52
DartClassLibrary& class_library () { return *class_library_; }
59
53
DartMessageHandler& message_handler () { return *message_handler_; }
60
54
FileLoader& file_loader () { return *file_loader_; }
@@ -76,7 +70,6 @@ class DartState : public std::enable_shared_from_this<DartState> {
76
70
77
71
private:
78
72
Dart_Isolate isolate_;
79
- DartPersistentValue private_constructor_name_;
80
73
std::unique_ptr<DartClassLibrary> class_library_;
81
74
std::unique_ptr<DartMessageHandler> message_handler_;
82
75
std::unique_ptr<FileLoader> file_loader_;
You can’t perform that action at this time.
0 commit comments