@@ -9,7 +9,6 @@ import 'package:_pub_shared/search/tags.dart';
99import 'package:clock/clock.dart' ;
1010import 'package:json_annotation/json_annotation.dart' ;
1111import 'package:pana/models.dart' ;
12- import 'package:pub_dev/service/download_counts/backend.dart' ;
1312import 'package:pub_dev/service/download_counts/download_counts.dart' ;
1413import 'package:pub_semver/pub_semver.dart' ;
1514
@@ -937,7 +936,6 @@ class PackageView {
937936 final List <ProcessedScreenshot >? screenshots;
938937
939938 final List <String >? topics;
940- final int ? thirtyDaysDownloadCounts;
941939
942940 PackageView ({
943941 this .screenshots,
@@ -955,7 +953,6 @@ class PackageView {
955953 this .spdxIdentifiers,
956954 this .apiPages,
957955 this .topics,
958- required this .thirtyDaysDownloadCounts,
959956 }) : isPending = isPending ?? false ,
960957 tags = tags ?? < String > [];
961958
@@ -968,7 +965,6 @@ class PackageView {
968965 PackageVersion ? version,
969966 required ScoreCardData scoreCard,
970967 List <ApiPageRef >? apiPages,
971- required int ? thirtyDaysDownloadCounts,
972968 }) {
973969 final tags = < String > {
974970 ...package.getTags (),
@@ -992,7 +988,6 @@ class PackageView {
992988 apiPages: apiPages,
993989 screenshots: scoreCard.panaReport? .screenshots,
994990 topics: version? .pubspec? .canonicalizedTopics,
995- thirtyDaysDownloadCounts: thirtyDaysDownloadCounts,
996991 );
997992 }
998993
@@ -1013,7 +1008,6 @@ class PackageView {
10131008 apiPages: apiPages ?? this .apiPages,
10141009 screenshots: screenshots,
10151010 topics: topics,
1016- thirtyDaysDownloadCounts: thirtyDaysDownloadCounts,
10171011 );
10181012 }
10191013
@@ -1172,8 +1166,6 @@ class PackagePageData {
11721166 releases: latestReleases,
11731167 version: version,
11741168 scoreCard: scoreCard,
1175- thirtyDaysDownloadCounts:
1176- downloadCountsBackend.lookup30DaysTotalCounts (package.name! ),
11771169 );
11781170 }
11791171}
0 commit comments