mirror of
https://github.com/google/blockly.git
synced 2026-01-30 20:20:09 +01:00
chore: Remove unused isFocusable*() functions.
These were needed in previous versions of plugin changes, but aren't anymore.
This commit is contained in:
@@ -60,20 +60,3 @@ export interface IFocusableNode {
|
||||
*/
|
||||
onNodeBlur(): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether the provided object fulfills the contract of
|
||||
* IFocusableNode.
|
||||
*
|
||||
* @param object The object to test.
|
||||
* @returns Whether the provided object can be used as an IFocusableNode.
|
||||
*/
|
||||
export function isFocusableNode(object: any | null): object is IFocusableNode {
|
||||
return (
|
||||
object &&
|
||||
'getFocusableElement' in object &&
|
||||
'getFocusableTree' in object &&
|
||||
'onNodeFocus' in object &&
|
||||
'onNodeBlur' in object
|
||||
);
|
||||
}
|
||||
|
||||
@@ -119,22 +119,3 @@ export interface IFocusableTree {
|
||||
*/
|
||||
onTreeBlur(nextTree: IFocusableTree | null): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines whether the provided object fulfills the contract of
|
||||
* IFocusableTree.
|
||||
*
|
||||
* @param object The object to test.
|
||||
* @returns Whether the provided object can be used as an IFocusableTree.
|
||||
*/
|
||||
export function isFocusableTree(object: any | null): object is IFocusableTree {
|
||||
return (
|
||||
object &&
|
||||
'getRootFocusableNode' in object &&
|
||||
'getRestoredFocusableNode' in object &&
|
||||
'getNestedTrees' in object &&
|
||||
'lookUpFocusableNode' in object &&
|
||||
'onTreeFocus' in object &&
|
||||
'onTreeBlur' in object
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user