@@ -9,7 +9,6 @@ import 'package:_pub_shared/search/tags.dart';
9
9
import 'package:clock/clock.dart' ;
10
10
import 'package:json_annotation/json_annotation.dart' ;
11
11
import 'package:pana/models.dart' ;
12
- import 'package:pub_dev/service/download_counts/backend.dart' ;
13
12
import 'package:pub_dev/service/download_counts/download_counts.dart' ;
14
13
import 'package:pub_semver/pub_semver.dart' ;
15
14
@@ -937,7 +936,6 @@ class PackageView {
937
936
final List <ProcessedScreenshot >? screenshots;
938
937
939
938
final List <String >? topics;
940
- final int ? thirtyDaysDownloadCounts;
941
939
942
940
PackageView ({
943
941
this .screenshots,
@@ -955,7 +953,6 @@ class PackageView {
955
953
this .spdxIdentifiers,
956
954
this .apiPages,
957
955
this .topics,
958
- required this .thirtyDaysDownloadCounts,
959
956
}) : isPending = isPending ?? false ,
960
957
tags = tags ?? < String > [];
961
958
@@ -968,7 +965,6 @@ class PackageView {
968
965
PackageVersion ? version,
969
966
required ScoreCardData scoreCard,
970
967
List <ApiPageRef >? apiPages,
971
- required int ? thirtyDaysDownloadCounts,
972
968
}) {
973
969
final tags = < String > {
974
970
...package.getTags (),
@@ -992,7 +988,6 @@ class PackageView {
992
988
apiPages: apiPages,
993
989
screenshots: scoreCard.panaReport? .screenshots,
994
990
topics: version? .pubspec? .canonicalizedTopics,
995
- thirtyDaysDownloadCounts: thirtyDaysDownloadCounts,
996
991
);
997
992
}
998
993
@@ -1013,7 +1008,6 @@ class PackageView {
1013
1008
apiPages: apiPages ?? this .apiPages,
1014
1009
screenshots: screenshots,
1015
1010
topics: topics,
1016
- thirtyDaysDownloadCounts: thirtyDaysDownloadCounts,
1017
1011
);
1018
1012
}
1019
1013
@@ -1172,8 +1166,6 @@ class PackagePageData {
1172
1166
releases: latestReleases,
1173
1167
version: version,
1174
1168
scoreCard: scoreCard,
1175
- thirtyDaysDownloadCounts:
1176
- downloadCountsBackend.lookup30DaysTotalCounts (package.name! ),
1177
1169
);
1178
1170
}
1179
1171
}
0 commit comments