diff --git a/WordPress/Classes/Utility/Editor/EditorFactory.swift b/WordPress/Classes/Utility/Editor/EditorFactory.swift index 095608ca3b6c..a42d4ca8ac15 100644 --- a/WordPress/Classes/Utility/Editor/EditorFactory.swift +++ b/WordPress/Classes/Utility/Editor/EditorFactory.swift @@ -34,11 +34,6 @@ class EditorFactory { return gutenbergVC } - func switchToAztec(from source: EditorViewController) { - let replacement = AztecPostViewController(post: source.post, replaceEditor: source.replaceEditor, editorSession: source.editorSession) - source.replaceEditor(source, replacement) - } - func switchToGutenberg(from source: EditorViewController) { let replacement = GutenbergViewController(post: source.post, replaceEditor: source.replaceEditor, editorSession: source.editorSession) source.replaceEditor(source, replacement) diff --git a/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController+MoreActions.swift b/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController+MoreActions.swift index aa196afd8334..f2a5f80d74b7 100644 --- a/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController+MoreActions.swift +++ b/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController+MoreActions.swift @@ -27,10 +27,6 @@ extension GutenbergViewController { } } - alert.addDefaultActionWithTitle(MoreSheetAlert.classicTitle) { [unowned self] _ in - self.savePostEditsAndSwitchToAztec() - } - let toggleModeTitle: String = { if mode == .richText { return MoreSheetAlert.htmlTitle @@ -105,10 +101,6 @@ extension GutenbergViewController { extension GutenbergViewController { struct MoreSheetAlert { - static let classicTitle = NSLocalizedString( - "Switch to classic editor", - comment: "Switches from Gutenberg mobile to the classic editor" - ) static let htmlTitle = NSLocalizedString("Switch to HTML Mode", comment: "Switches the Editor to HTML Mode") static let richTitle = NSLocalizedString("Switch to Visual Mode", comment: "Switches the Editor to Rich Text Mode") static let previewTitle = NSLocalizedString("Preview", comment: "Displays the Post Preview Interface") diff --git a/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift b/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift index 70d35185225c..618e195d9be2 100644 --- a/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift +++ b/WordPress/Classes/ViewRelated/Gutenberg/GutenbergViewController.swift @@ -13,7 +13,6 @@ class GutenbergViewController: UIViewController, PostEditor { case publish case close case more - case switchToAztec case switchBlog case autoSave } @@ -501,12 +500,6 @@ class GutenbergViewController: UIViewController, PostEditor { @objc func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? { return presentationController(forPresented: presented, presenting: presenting) } - - // MARK: - Switch to Aztec - - func savePostEditsAndSwitchToAztec() { - requestHTML(for: .switchToAztec) - } } // MARK: - Views setup @@ -809,9 +802,6 @@ extension GutenbergViewController: GutenbergBridgeDelegate { cancelEditing() case .more: displayMoreSheet() - case .switchToAztec: - editorSession.switch(editor: .classic) - EditorFactory().switchToAztec(from: self) case .switchBlog: blogPickerWasPressed() case .autoSave: