eliminated clones;
authorwenzelm
Sun, 14 Jan 2018 21:25:43 +0100
changeset 67436 e446505a4ec6
parent 67435 f83c1842a559
child 67437 a6bf7167c5e1
eliminated clones;
src/Pure/General/completion.scala
src/Pure/Tools/update_comments.scala
src/Pure/library.scala
--- a/src/Pure/General/completion.scala	Sun Jan 14 20:58:41 2018 +0100
+++ b/src/Pure/General/completion.scala	Sun Jan 14 21:25:43 2018 +0100
@@ -220,7 +220,7 @@
           val replacement =
             List(original, xname1).map(Token.explode(Keyword.Keywords.empty, _)) match {
               case List(List(tok), _) if tok.kind == Token.Kind.CARTOUCHE =>
-                Library.cartouche_decoded(xname1)
+                Symbol.cartouche_decoded(xname1)
               case List(_, List(tok)) if tok.is_name => xname1
               case _ => quote(xname1)
             }
--- a/src/Pure/Tools/update_comments.scala	Sun Jan 14 20:58:41 2018 +0100
+++ b/src/Pure/Tools/update_comments.scala	Sun Jan 14 21:25:43 2018 +0100
@@ -21,7 +21,7 @@
           rest.dropWhile(_.is_space) match {
             case tok1 :: rest1 if tok1.is_text =>
               val txt = Symbol.trim_blanks(tok1.content)
-              update(rest1, (Symbol.comment + Symbol.space + Library.cartouche(txt)) :: result)
+              update(rest1, (Symbol.comment + Symbol.space + Symbol.cartouche(txt)) :: result)
             case _ => update(rest, tok.source :: result)
           }
         case tok :: rest => update(rest, tok.source :: result)
--- a/src/Pure/library.scala	Sun Jan 14 20:58:41 2018 +0100
+++ b/src/Pure/library.scala	Sun Jan 14 21:25:43 2018 +0100
@@ -148,12 +148,6 @@
   def isolate_substring(s: String): String = new String(s.toCharArray)
 
 
-  /* cartouche */
-
-  def cartouche(s: String): String = Symbol.open + s + Symbol.close
-  def cartouche_decoded(s: String): String = Symbol.open_decoded + s + Symbol.close_decoded
-
-
   /* quote */
 
   def quote(s: String): String = "\"" + s + "\""