Removed unused branch in Paginator.validate_number().
Unused since
@@ -51,9 +51,6 @@ class Paginator:
if number < 1:
raise EmptyPage(_("That page number is less than 1"))
if number > self.num_pages:
- if number == 1 and self.allow_empty_first_page:
- pass
- else:
raise EmptyPage(_("That page contains no results"))
return number
