Skip to content

Commit c36dcfb

Browse files
committed
refactor: remove unused CourseData class
1 parent b9c78c0 commit c36dcfb

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

openedx_authz/api/data.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -387,32 +387,6 @@ def __repr__(self):
387387
return self.namespaced_key
388388

389389

390-
class CourseData(ScopeData):
391-
"""A course scope for authorization in the Open edX platform.
392-
393-
This class represents a course scope for authorization in the Open edX platform.
394-
"""
395-
396-
NAMESPACE: ClassVar[str] = "course-v1"
397-
398-
@classmethod
399-
def validate_external_key(cls, _: str) -> bool:
400-
"""Validate the external_key format for CourseData.
401-
402-
Args:
403-
external_key: The external key to validate.
404-
"""
405-
return True
406-
407-
def exists(self) -> bool:
408-
"""Check if the course exists.
409-
410-
Returns:
411-
bool: True if the course exists, False otherwise.
412-
"""
413-
return True
414-
415-
416390
class SubjectMeta(type):
417391
"""Metaclass for SubjectData to handle dynamic subclass instantiation based on namespace."""
418392

0 commit comments

Comments
 (0)