@@ -19,7 +19,6 @@ import '../search/search_service.dart' show ApiPageRef;
1919import '../shared/datastore.dart' as db;
2020import '../shared/exceptions.dart' ;
2121import '../shared/model_properties.dart' ;
22- import '../shared/popularity_storage.dart' ;
2322import '../shared/urls.dart' as urls;
2423import '../shared/utils.dart' ;
2524
@@ -946,7 +945,6 @@ class PackageView {
946945 final List <ProcessedScreenshot >? screenshots;
947946
948947 final List <String >? topics;
949- final int popularity;
950948 final int ? thirtyDaysDownloadCounts;
951949
952950 PackageView ({
@@ -965,7 +963,6 @@ class PackageView {
965963 this .spdxIdentifiers,
966964 this .apiPages,
967965 this .topics,
968- required this .popularity,
969966 required this .thirtyDaysDownloadCounts,
970967 }) : isPending = isPending ?? false ,
971968 tags = tags ?? < String > [];
@@ -979,7 +976,6 @@ class PackageView {
979976 PackageVersion ? version,
980977 required ScoreCardData scoreCard,
981978 List <ApiPageRef >? apiPages,
982- required int popularity,
983979 required int ? thirtyDaysDownloadCounts,
984980 }) {
985981 final tags = < String > {
@@ -1004,7 +1000,6 @@ class PackageView {
10041000 apiPages: apiPages,
10051001 screenshots: scoreCard.panaReport? .screenshots,
10061002 topics: version? .pubspec? .canonicalizedTopics,
1007- popularity: popularity,
10081003 thirtyDaysDownloadCounts: thirtyDaysDownloadCounts,
10091004 );
10101005 }
@@ -1026,7 +1021,6 @@ class PackageView {
10261021 apiPages: apiPages ?? this .apiPages,
10271022 screenshots: screenshots,
10281023 topics: topics,
1029- popularity: popularity,
10301024 thirtyDaysDownloadCounts: thirtyDaysDownloadCounts,
10311025 );
10321026 }
@@ -1177,7 +1171,6 @@ class PackagePageData {
11771171 releases: latestReleases,
11781172 version: version,
11791173 scoreCard: scoreCard,
1180- popularity: popularityStorage.lookupAsScore (package.name! ),
11811174 thirtyDaysDownloadCounts:
11821175 downloadCountsBackend.lookup30DaysTotalCounts (package.name! ),
11831176 );
0 commit comments