diff --git a/dev/tools/create_api_docs.dart b/dev/tools/create_api_docs.dart index 543e9df35f..556e201799 100644 --- a/dev/tools/create_api_docs.dart +++ b/dev/tools/create_api_docs.dart @@ -659,7 +659,8 @@ class DartdocGenerator { String quote(String arg) => arg.contains(' ') ? "'$arg'" : arg; print('Executing: (cd "${packageRoot.path}" ; ' - '${FlutterInformation.instance.getDartBinaryPath().path} ' + '${FlutterInformation.instance.getFlutterBinaryPath().path} ' + 'pub ' '${dartdocArgs.map(quote).join(' ')})'); process = ProcessWrapper(await runPubProcess( @@ -1086,13 +1087,6 @@ class FlutterInformation { @visibleForTesting static set instance(FlutterInformation? value) => _instance = value; - /// The path to the Dart binary in the Flutter repo. - /// - /// This is probably a shell script. - File getDartBinaryPath() { - return getFlutterRoot().childDirectory('bin').childFile('dart'); - } - /// The path to the Dart binary in the Flutter repo. /// /// This is probably a shell script.