code cleanup: Remove unused parameter in pick_color.

This commit is contained in:
Steve Howell 2021-12-23 20:24:52 +00:00 committed by Tim Abbott
parent 5e194afda3
commit 56da570422
1 changed files with 2 additions and 2 deletions

View File

@ -3596,7 +3596,7 @@ def internal_send_huddle_message(
return message_ids[0]
def pick_color(user_profile: UserProfile, used_colors: Set[str]) -> str:
def pick_color(used_colors: Set[str]) -> str:
# These colors are shared with the palette in stream_settings_ui.js.
available_colors = [s for s in STREAM_ASSIGNMENT_COLORS if s not in used_colors]
@ -3889,7 +3889,7 @@ def bulk_add_subscriptions(
if stream.name in color_map:
color = color_map[stream.name]
else:
color = pick_color(user_profile, used_colors)
color = pick_color(used_colors)
used_colors.add(color)
sub = Subscription(