From 786fed0d5eadb1e77100348c067e40885754385a Mon Sep 17 00:00:00 2001 From: Mlada_Yudovina Date: Wed, 14 Sep 2022 19:33:27 +0300 Subject: [PATCH] #1723 convert Daylight SMILES using indigo api Ketcher started using API call /convert to convert ket format to Daylight SMILES because Indigo supports reagents --- .../application/formatters/formatterFactory.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/ketcher-core/src/application/formatters/formatterFactory.ts b/packages/ketcher-core/src/application/formatters/formatterFactory.ts index e5ed8e0d02..96136d9303 100644 --- a/packages/ketcher-core/src/application/formatters/formatterFactory.ts +++ b/packages/ketcher-core/src/application/formatters/formatterFactory.ts @@ -23,7 +23,6 @@ import { KetSerializer, MolSerializer, MolSerializerOptions, - SmiSerializer } 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':