mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 06:01:24 +02:00
Remove old validate methods
This commit is contained in:
@@ -1290,19 +1290,7 @@ const Node = {
|
||||
} else {
|
||||
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',
|
||||
'hasDescendant',
|
||||
'hasVoidParent',
|
||||
'isInlineSplitAtRange',
|
||||
'validate'
|
||||
'isInlineSplitAtRange'
|
||||
])
|
||||
|
||||
/**
|
||||
|
@@ -328,18 +328,6 @@ class Text extends new Record(DEFAULTS) {
|
||||
|
||||
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, [
|
||||
'getDecorations',
|
||||
'getDecorators',
|
||||
'getRanges',
|
||||
'validate',
|
||||
'getRanges'
|
||||
])
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user