1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-21 06:31:28 +02:00

Remove old validate methods

This commit is contained in:
Soreine
2016-11-01 14:56:02 +01:00
parent f9eda89c33
commit 321a71ef25
2 changed files with 2 additions and 28 deletions

View File

@@ -1290,19 +1290,7 @@ const Node = {
} else { } else {
return result return result
} }
},
/**
* Validate the node against a `schema`.
*
* @param {Schema} schema
* @return {Object || Void}
*/
validate(schema) {
return schema.__validate(this)
} }
} }
/** /**
@@ -1356,8 +1344,7 @@ memoize(Node, [
'hasChild', 'hasChild',
'hasDescendant', 'hasDescendant',
'hasVoidParent', 'hasVoidParent',
'isInlineSplitAtRange', 'isInlineSplitAtRange'
'validate'
]) ])
/** /**

View File

@@ -328,18 +328,6 @@ class Text extends new Record(DEFAULTS) {
return this.merge({ characters }) return this.merge({ characters })
} }
/**
* Validate the node against a `schema`.
*
* @param {Schema} schema
* @return {Object || Void}
*/
validate(schema) {
return schema.__validate(this)
}
} }
/** /**
@@ -349,8 +337,7 @@ class Text extends new Record(DEFAULTS) {
memoize(Text.prototype, [ memoize(Text.prototype, [
'getDecorations', 'getDecorations',
'getDecorators', 'getDecorators',
'getRanges', 'getRanges'
'validate',
]) ])
/** /**