Remove unused RawDescriptor and EmptyDataRawDescriptor.

This commit is contained in:
Usman Khalid
2021-03-11 21:19:31 +05:00
parent 78cd8be24d
commit 23d1e5b654
3 changed files with 1 additions and 19 deletions

View File

@@ -4,7 +4,6 @@ from setuptools import find_packages, setup
XMODULES = [
"section = xmodule.backcompat_module:SemanticSectionDescriptor",
"raw = xmodule.raw_module:RawDescriptor",
]
XBLOCKS = [
"about = xmodule.html_module:AboutBlock",

View File

@@ -99,14 +99,6 @@ class RawMixin:
return block
class RawDescriptor(RawMixin, XmlDescriptor, XMLEditingDescriptor):
"""
Module that provides a raw editing view of its data and children. It
requires that the definition xml is valid.
"""
pass # lint-amnesty, pylint: disable=unnecessary-pass
class EmptyDataRawMixin:
"""
Common code between EmptyDataRawDescriptor and XBlocks converted from XModules.
@@ -125,11 +117,3 @@ class EmptyDataRawMixin:
if self.data:
return etree.fromstring(self.data)
return etree.Element(self.category)
class EmptyDataRawDescriptor(EmptyDataRawMixin, XmlDescriptor, XMLEditingDescriptor):
"""
Version of RawDescriptor for modules which may have no XML data,
but use XMLEditingDescriptor for import/export handling.
"""
pass # lint-amnesty, pylint: disable=unnecessary-pass