From 2b4fa8a728580e74bcfed340c96950c1c0635544 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Thu, 22 Mar 2018 15:44:22 +0200 Subject: [PATCH] Remove duplicate string/regex functionality from Simantics/Misc refs #7836 Change-Id: I485f09891cb0bd60f2e3b53209a3aaa47e5f7d24 --- .../scl/Simantics/Misc.scl | 26 +------------------ 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/bundles/org.simantics.modeling/scl/Simantics/Misc.scl b/bundles/org.simantics.modeling/scl/Simantics/Misc.scl index 8b7662992..e334852ab 100644 --- a/bundles/org.simantics.modeling/scl/Simantics/Misc.scl +++ b/bundles/org.simantics.modeling/scl/Simantics/Misc.scl @@ -2,15 +2,6 @@ import "Simantics/Entity" hiding (nameOf) include "File" import "StandardLibrary" hiding (group) -/* -importJava "java.io.File" where - data File - - @JavaName "" - file :: String -> File - -*/ - importJava "java.util.Scanner" where data Scanner @@ -29,22 +20,7 @@ importJava "java.util.Scanner" where @JavaName "nextLine" scanNextLine :: Scanner -> String -importJava "java.util.regex.Pattern" where - data Pattern - - @JavaName "compile" - compile :: String -> Pattern - - @JavaName "matcher" - matcher :: Pattern -> String -> Matcher - -importJava "java.util.regex.Matcher" where - data Matcher - - @JavaName "matches" - matches :: Matcher -> Boolean - - group :: Matcher -> String +include "String" importJava "org.simantics.utils.ui.BundleUtils" where @JavaName "findFile" -- 2.47.1