Skip to content

Commit 3cc2636

Browse files
committed
Remove unused code
1 parent 91b74dd commit 3cc2636

File tree

3 files changed

+0
-150
lines changed

3 files changed

+0
-150
lines changed

assets/js/classic-editor-tools.js

Lines changed: 0 additions & 136 deletions
This file was deleted.

classes/class-classic-editor.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,6 @@ public function admin_enqueue_scripts( $hook_suffix ) {
6464
filemtime( CHBE_PATH . '/assets/css/fira-code.css' )
6565
);
6666

67-
wp_enqueue_script(
68-
CHBE_NAMESPACE . '-tools',
69-
CHBE_URL . '/assets/js/classic-editor-tools.js',
70-
array( 'jquery-ui-dialog' ),
71-
filemtime( CHBE_PATH . '/assets/js/classic-editor-tools.js' ),
72-
true
73-
);
74-
7567
wp_enqueue_script(
7668
CHBE_NAMESPACE,
7769
CHBE_URL . '/build/classic-editor.js',

src/classic-editor/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ initLoader().then( ( monaco ) => {
2626
const editorContainer = document.getElementById( 'wp-content-editor-container' );
2727
const draftButton = document.getElementById( 'save-post' );
2828
const publishButton = document.getElementById( 'publish' );
29-
const replaceIndentButton = document.getElementById( 'chbe-replace-indent-button' );
3029
const syncTriggers = document.querySelectorAll(
3130
'.ed_button, .ui-button, #wp-link-url, #wp-link-text, #wp-link-submit, #wp-link-search'
3231
);
@@ -282,8 +281,6 @@ initLoader().then( ( monaco ) => {
282281
window.removeEventListener( 'resize', onWindowResize );
283282
isMonacoEditorEnabled = false;
284283
}
285-
286-
replaceIndentButton.style.display = 'none';
287284
};
288285

289286
// Switch to html edit mode.
@@ -298,8 +295,6 @@ initLoader().then( ( monaco ) => {
298295
setTimeout( () => {
299296
updateToolbarMargin();
300297
}, 300 );
301-
302-
replaceIndentButton.style.display = 'inline-block';
303298
};
304299

305300
// Initialize
@@ -315,7 +310,6 @@ initLoader().then( ( monaco ) => {
315310
}
316311
} else {
317312
runEditor();
318-
replaceIndentButton.style.display = 'inline-block';
319313
if ( tabTmce ) {
320314
tabTmce.onclick = toVisual;
321315
}

0 commit comments

Comments
 (0)