1
0
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:
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 {
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'
])
/**

View File

@@ -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'
])
/**