Skip to content

Commit 5b8a848

Browse files
refactor: remove unused functions from getTypeServices
1 parent a242cfa commit 5b8a848

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/etc/get-type-services.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { ESLintUtils, TSESLint, TSESTree } from '@typescript-eslint/utils';
2-
import * as tsutils from 'ts-api-utils';
32
import ts from 'typescript';
43
import { couldBeFunction } from './could-be-function';
54
import { couldBeType as tsutilsEtcCouldBeType } from './could-be-type';
@@ -59,7 +58,6 @@ export function getTypeServices<
5958
return {
6059
couldBeBehaviorSubject: (node: TSESTree.Node) =>
6160
couldBeType(node, 'BehaviorSubject'),
62-
couldBeError: (node: TSESTree.Node) => couldBeType(node, 'Error'),
6361
couldBeFunction: (node: TSESTree.Node) => {
6462
if (isArrowFunctionExpression(node) || isFunctionDeclaration(node)) {
6563
return true;
@@ -75,8 +73,5 @@ export function getTypeServices<
7573
couldReturnObservable: (node: TSESTree.Node) =>
7674
couldReturnType(node, 'Observable'),
7775
couldReturnType,
78-
isAny: (node: TSESTree.Node) => tsutils.isIntrinsicAnyType(getTypeAtLocation(node)),
79-
isReferenceType: (node: TSESTree.Node) => tsutils.isTypeReference(getTypeAtLocation(node)),
80-
isUnknown: (node: TSESTree.Node) => tsutils.isIntrinsicUnknownType(getTypeAtLocation(node)),
8176
};
8277
}

0 commit comments

Comments
 (0)