Kaynağa Gözat

Changed: Removed `createSplitButtonDropdown()` from dropdown utils.

Maciej Gołaszewski 7 yıl önce
ebeveyn
işleme
65d1b88e67

+ 0 - 15
packages/ckeditor5-ui/src/dropdown/utils.js

@@ -110,21 +110,6 @@ export function createDropdownView( model, buttonView, locale ) {
 	return dropdownView;
 }
 
-export function createSplitButtonDropdown( model, locale ) {
-	const splitButtonView = createSplitButtonForDropdown( model, locale );
-	const dropdownView = createDropdownView( model, splitButtonView, locale );
-
-	// Extend template to hide arrow from dropdown.
-	// TODO: enable this on normal button instead of hiding it
-	dropdownView.extendTemplate( {
-		attributes: {
-			class: 'ck-splitbutton-dropdown'
-		}
-	} );
-
-	return dropdownView;
-}
-
 export function enableModelIfOneIsEnabled( model, observables ) {
 	model.bind( 'isEnabled' ).to(
 		// Bind to #isEnabled of each observable...

+ 0 - 2
packages/ckeditor5-ui/tests/dropdown/utils.js

@@ -327,8 +327,6 @@ describe( 'utils', () => {
 		} );
 	} );
 
-	describe( 'createSplitButtonDropdown()', () => { } );
-
 	describe( 'enableModelIfOneIsEnabled()', () => {
 		it( 'Bind to #isEnabled of each observable  and set it true if any observable #isEnabled is true', () => {
 			const observables = [