import logging
from django.http import HttpResponse
from myuw_mobile.dao.term import get_quarter, is_past
from myuw_mobile.logger.timer import Timer
from myuw_mobile.dao.card_display_dates import get_values_by_date
from myuw_mobile.dao.card_display_dates import get_card_visibilty_date_values
from myuw_mobile.views.api.base_schedule import StudClasSche


class StudClasScheFutureQuar(StudClasSche):
    """
    Performs actions on resource at
    /api/v1/schedule/<year>,<quarter>(,<summer_term>)?
    """
    def GET(self, request, year, quarter, summer_term=None):
        """
        GET returns 200 with course section schedule details of
        the given year, quarter.
        Return the course sections of full term and matched term
        if a specific summer-term is given
        """
        timer = Timer()
        smr_term = ""
        if summer_term and len(summer_term) > 1:
            smr_term = summer_term.title()

        request_term = get_quarter(year, quarter)
        if not request_term:
            return HttpResponse(status=404)

        visibility_data = get_card_visibilty_date_values(request)
        if is_past(request_term, request):
            if not visibility_data["is_before_first_day_of_term"]:
                return HttpResponse(status=410)

        return self.make_http_resp(
            logging.getLogger(__name__),
            timer,
            request_term,
            request,
            smr_term)

@@ -146,74 +146,8 @@
 mer%0A
-from myuw_mobile.dao.card_display_dates import get_values_by_date%0A
 from

remove unused import