Skip to content

Commit

Permalink
Cleanup task backend method. (#7163)
Browse files Browse the repository at this point in the history
  • Loading branch information
isoos authored Nov 3, 2023
1 parent 955ff69 commit 84e3e21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions app/lib/task/backend.dart
Original file line number Diff line number Diff line change
Expand Up @@ -901,15 +901,6 @@ class TaskBackend {
);
}

/// Return gzipped dartdoc page or `null`.
// TODO: Remove this in favor of dartdocFile
Future<List<int>?> dartdocPage(
String package,
String version,
String path,
) async =>
await gzippedTaskResult(package, version, 'doc/$path');

/// Return [Summary] from pana or `null` if not available.
///
/// The summary can be unavailable for a number of reasons:
Expand Down
4 changes: 2 additions & 2 deletions app/test/task/task_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void main() {
expect(log1, isNull);

// Check that the dartdoc is missing
final dartdoc1 = await taskBackend.dartdocPage(
final dartdoc1 = await taskBackend.dartdocFile(
'oxygen',
'1.2.0',
'index.html',
Expand Down Expand Up @@ -149,7 +149,7 @@ void main() {
expect(log2, contains('This is a pana log file'));

// Check that we can get the generated dartdoc
final dartdoc2 = await taskBackend.dartdocPage(
final dartdoc2 = await taskBackend.dartdocFile(
'oxygen',
'1.2.0',
'index.html',
Expand Down

0 comments on commit 84e3e21

Please sign in to comment.