[backend/parsing] Remove JS interop

This commit is contained in:
Laura Hausmann 2024-04-01 01:42:50 +02:00
parent cd274f22e5
commit fb0b58b851
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
3 changed files with 0 additions and 10 deletions

View file

@ -5,12 +5,6 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(WASM)' == 'true'">
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
<PublishTrimmed>true</PublishTrimmed>
<RunAOTCompilation>true</RunAOTCompilation>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="SearchQuery.fs"/> <Compile Include="SearchQuery.fs"/>
<Compile Include="Mfm.fs" /> <Compile Include="Mfm.fs" />

View file

@ -2,7 +2,6 @@ namespace Iceshrimp.Parsing
open System open System
open System.Collections.Generic open System.Collections.Generic
open System.Runtime.InteropServices.JavaScript
open FParsec open FParsec
module MfmNodeTypes = module MfmNodeTypes =
@ -330,7 +329,6 @@ module private MfmParser =
open MfmParser open MfmParser
module Mfm = module Mfm =
[<JSExport>]
let parse str = let parse str =
match run parse str with match run parse str with
| Success(result, _, _) -> aggregateText result | Success(result, _, _) -> aggregateText result

View file

@ -1,7 +1,6 @@
namespace Iceshrimp.Parsing namespace Iceshrimp.Parsing
open System open System
open System.Runtime.InteropServices.JavaScript
open FParsec open FParsec
module SearchQueryFilters = module SearchQueryFilters =
@ -248,7 +247,6 @@ module private SearchQueryParser =
module SearchQuery = module SearchQuery =
open SearchQueryParser open SearchQueryParser
[<JSExport>]
let parse str = let parse str =
match run parse str with match run parse str with
| Success(result, _, _) -> result | Success(result, _, _) -> result