Skip to content

Commit

Permalink
Remove unnecessary DartIO::EntropySource wrapper (flutter#8635)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdempsky authored and jason-simmons committed Apr 19, 2019
1 parent 0fcfa0d commit 4688dc7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions lib/io/dart_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,4 @@ void DartIO::InitForIsolate() {
}
}

bool DartIO::EntropySource(uint8_t* buffer, intptr_t length) {
return dart::bin::GetEntropy(buffer, length);
}

} // namespace flutter
1 change: 0 additions & 1 deletion lib/io/dart_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ namespace flutter {
class DartIO {
public:
static void InitForIsolate();
static bool EntropySource(uint8_t* buffer, intptr_t length);

private:
FML_DISALLOW_IMPLICIT_CONSTRUCTORS(DartIO);
Expand Down
2 changes: 1 addition & 1 deletion runtime/dart_vm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ DartVM::DartVM(std::shared_ptr<const DartVMData> vm_data,
DartIsolate::DartIsolateCleanupCallback);
params.thread_exit = ThreadExitCallback;
params.get_service_assets = GetVMServiceAssetsArchiveCallback;
params.entropy_source = DartIO::EntropySource;
params.entropy_source = dart::bin::GetEntropy;
char* init_error = Dart_Initialize(&params);
if (init_error) {
FML_LOG(FATAL) << "Error while initializing the Dart VM: " << init_error;
Expand Down

0 comments on commit 4688dc7

Please sign in to comment.