From f6e1f2185e3727f6b0976ab5f09abe4b1e9ebc55 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Tue, 8 Nov 2022 15:55:02 +0800 Subject: [PATCH] chore: remove unused code --- .../appflowy_editor/example/lib/main.dart | 41 ------------------- 1 file changed, 41 deletions(-) diff --git a/frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart b/frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart index bdb7f5d701..a81b823f37 100644 --- a/frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart +++ b/frontend/app_flowy/packages/appflowy_editor/example/lib/main.dart @@ -111,47 +111,6 @@ class _MyHomePageState extends State { if (!darkMode) ...lightEditorStyleExtension, if (!darkMode) ...lightPlguinStyleExtension, ]); - final delta = Delta(); - delta.add(TextInsert('Hello ')); - delta.add( - TextInsert( - 'World', - attributes: { - BuiltInAttributeKey.bold: true, - BuiltInAttributeKey.italic: true, - }, - ), - ); - delta.add( - TextInsert( - ' ', - ), - ); - delta.add( - TextInsert( - 'Again', - attributes: { - BuiltInAttributeKey.italic: true, - }, - ), - ); - delta.add( - TextInsert( - ' ', - ), - ); - delta.add( - TextInsert( - 'Again', - attributes: { - BuiltInAttributeKey.href: 'https://google.com', - BuiltInAttributeKey.italic: true, - BuiltInAttributeKey.bold: true, - BuiltInAttributeKey.strikethrough: true, - }, - ), - ); - final result = DeltaMarkdownEncoder().convert(delta); return Container( color: darkMode ? Colors.black : Colors.white, width: MediaQuery.of(context).size.width,