From 12284672288a89675cac003acc7489073e67b20b Mon Sep 17 00:00:00 2001 From: Mlada_Yudovina Date: Wed, 14 Sep 2022 19:33:27 +0300 Subject: [PATCH] Ketcher started using API call /convert to convert ket format to Daylight SMILES because Indigo supports reagents --- .../application/formatters/formatterFactory.ts | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/packages/ketcher-core/src/application/formatters/formatterFactory.ts b/packages/ketcher-core/src/application/formatters/formatterFactory.ts index e5ed8e0d02..c617176bcb 100644 --- a/packages/ketcher-core/src/application/formatters/formatterFactory.ts +++ b/packages/ketcher-core/src/application/formatters/formatterFactory.ts @@ -22,8 +22,7 @@ import { import { KetSerializer, MolSerializer, - MolSerializerOptions, - SmiSerializer + MolSerializerOptions } from 'domain/serializers' import { StructService, StructServiceOptions } from 'domain/services' @@ -31,7 +30,6 @@ import { KetFormatter } from './ketFormatter' import { MolfileV2000Formatter } from './molfileV2000Formatter' import { RxnFormatter } from './rxnFormatter' import { ServerFormatter } from './serverFormatter' -import { SmilesFormatter } from './smilesFormatter' export class FormatterFactory { #structService: StructService @@ -85,24 +83,12 @@ export class FormatterFactory { formatter = new RxnFormatter(new MolSerializer(molSerializerOptions)) break - case 'smiles': - formatter = new SmilesFormatter( - new SmiSerializer(), - - // only for ServerFormatter, because 'getStructureFromStringAsync' is delegated to it - - this.#structService, - new KetSerializer(), - format, - structServiceOptions - ) - break - case 'cml': case 'inChIAuxInfo': case 'inChI': case 'molV3000': case 'rxnV3000': + case 'smiles': case 'smilesExt': case 'smarts': case 'cdxml':