Skip to content

Commit 1b38024

Browse files
authored
Feature flag: remove CDN_ENABLED which is not used anymore (#10921)
Small code cleaning to continue removing old feature flags.
1 parent 60944ee commit 1b38024

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

readthedocs/projects/models.py

-8
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,6 @@ def add_features(sender, **kwargs):
19211921
API_LARGE_DATA = "api_large_data"
19221922
CONDA_APPEND_CORE_REQUIREMENTS = "conda_append_core_requirements"
19231923
ALL_VERSIONS_IN_HTML_CONTEXT = "all_versions_in_html_context"
1924-
CDN_ENABLED = "cdn_enabled"
19251924
RECORD_404_PAGE_VIEWS = "record_404_page_views"
19261925
ALLOW_FORCED_REDIRECTS = "allow_forced_redirects"
19271926
DISABLE_PAGEVIEWS = "disable_pageviews"
@@ -1988,13 +1987,6 @@ def add_features(sender, **kwargs):
19881987
"when building with Sphinx"
19891988
),
19901989
),
1991-
(
1992-
CDN_ENABLED,
1993-
_(
1994-
"Proxito: CDN support for a project's public versions when privacy levels "
1995-
"are enabled."
1996-
),
1997-
),
19981990
(
19991991
RECORD_404_PAGE_VIEWS,
20001992
_("Proxito: Record 404s page views."),

readthedocs/proxito/tests/test_full.py

-8
Original file line numberDiff line numberDiff line change
@@ -1695,14 +1695,6 @@ def test_404_download(self):
16951695
)
16961696
class TestCDNCache(BaseDocServing):
16971697

1698-
def setUp(self):
1699-
super().setUp()
1700-
get(
1701-
Feature,
1702-
feature_id=Feature.CDN_ENABLED,
1703-
projects=list(Project.objects.all()),
1704-
)
1705-
17061698
def _test_cache_control_header_project(self, expected_value, host=None):
17071699
"""
17081700
Test the CDN-Cache-Control header on requests for `self.project`.

0 commit comments

Comments
 (0)