Browse Source

Docs: Removed duplicated error docs. [skip ci]

Piotrek Koszuliński 8 years ago
parent
commit
f4be5fc504
1 changed files with 6 additions and 15 deletions
  1. 6 15
      packages/ckeditor5-engine/src/model/schema.js

+ 6 - 15
packages/ckeditor5-engine/src/model/schema.js

@@ -274,11 +274,6 @@ export default class Schema {
 		}
 
 		if ( !!isExtending && !this.hasItem( isExtending ) ) {
-			/**
-			 * Item with specified name does not exist in schema.
-			 *
-			 * @error model-schema-no-item
-			 */
 			throw new CKEditorError( 'model-schema-no-item: Item with specified name does not exist in schema.' );
 		}
 
@@ -303,11 +298,6 @@ export default class Schema {
 	 */
 	itemExtends( childItemName, parentItemName ) {
 		if ( !this.hasItem( childItemName ) || !this.hasItem( parentItemName ) ) {
-			/**
-			 * Item with specified name does not exist in schema.
-			 *
-			 * @error model-schema-no-item
-			 */
 			throw new CKEditorError( 'model-schema-no-item: Item with specified name does not exist in schema.' );
 		}
 
@@ -470,11 +460,6 @@ export default class Schema {
 	 */
 	_getItem( itemName ) {
 		if ( !this.hasItem( itemName ) ) {
-			/**
-			 * Item with specified name does not exist in schema.
-			 *
-			 * @error model-schema-no-item
-			 */
 			throw new CKEditorError( 'model-schema-no-item: Item with specified name does not exist in schema.' );
 		}
 
@@ -759,3 +744,9 @@ function matchPaths( schema, pathToCheck, registeredPath ) {
 
 	return true;
 }
+
+/**
+ * Item with specified name does not exist in schema.
+ *
+ * @error model-schema-no-item
+ */