From 3aeb1203da671f9a9aac3b2317b2264add2e474e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20St=C3=BCrmer?= Date: Tue, 13 Jul 2021 16:25:55 +0200 Subject: [PATCH] Remove unused code --- .../server/utils/get_rule_executor_data.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/x-pack/plugins/rule_registry/server/utils/get_rule_executor_data.ts b/x-pack/plugins/rule_registry/server/utils/get_rule_executor_data.ts index 7cb02428322a65..144c0dafa3786e 100644 --- a/x-pack/plugins/rule_registry/server/utils/get_rule_executor_data.ts +++ b/x-pack/plugins/rule_registry/server/utils/get_rule_executor_data.ts @@ -14,7 +14,6 @@ import { RULE_UUID, TAGS, } from '../../common/technical_rule_data_field_names'; -import { AlertTypeExecutor, AlertTypeWithExecutor } from '../types'; export interface RuleExecutorData { [RULE_CATEGORY]: string; @@ -25,20 +24,6 @@ export interface RuleExecutorData { [TAGS]: string[]; } -export function getRuleExecutorData( - type: AlertTypeWithExecutor, - options: Parameters[0] -) { - return { - [RULE_ID]: type.id, - [RULE_UUID]: options.alertId, - [RULE_CATEGORY]: type.name, - [RULE_NAME]: options.name, - [TAGS]: options.tags, - [PRODUCER]: type.producer, - }; -} - export function getRuleData(options: AlertExecutorOptions) { return { [RULE_ID]: options.rule.ruleTypeId,