From ea9481fc54c20271352b970f7b81096860c0ca91 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Wed, 18 Sep 2013 00:19:40 -0400 Subject: [PATCH] Remove unused sample_promoted_links. --- r2/r2/lib/promote.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/r2/r2/lib/promote.py b/r2/r2/lib/promote.py index e0c0402ef..2acfd007c 100644 --- a/r2/r2/lib/promote.py +++ b/r2/r2/lib/promote.py @@ -886,15 +886,6 @@ def lottery_promoted_links(srids, n=10): return selected -def sample_promoted_links(user, site, n=10): - """Return a selection of promoted links.""" - promo_tuples = get_promotion_list(user, site) - if len(promo_tuples) <= n: - return promo_tuples - else: - return random.sample(promo_tuples, n) - - def get_total_run(thing): """Return the total time span this link or campaign will run.