Skip to content

Commit 75be2c2

Browse files
committed
refactor: remove unused CourseData class
1 parent b4cbc49 commit 75be2c2

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
@@ -393,32 +393,6 @@ def __repr__(self):
393393
return self.namespaced_key
394394

395395

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

0 commit comments

Comments
 (0)