# HG changeset patch # User wenzelm # Date 1579101504 -3600 # Node ID 942cc80ba18a8ccc025b20520b42df94f3c140fc # Parent 820cf124dced5a16ab9114c7b909e5081b8265c6 unused -- clone of Option.apply; diff -r 820cf124dced -r 942cc80ba18a src/Pure/ROOT.scala --- a/src/Pure/ROOT.scala Wed Jan 15 15:05:33 2020 +0100 +++ b/src/Pure/ROOT.scala Wed Jan 15 16:18:24 2020 +0100 @@ -18,7 +18,6 @@ val quote = Library.quote _ val commas = Library.commas _ val commas_quote = Library.commas_quote _ - def proper[A](x: A): Option[A] = Library.proper(x) val proper_string = Library.proper_string _ def proper_list[A](list: List[A]): Option[List[A]] = Library.proper_list(list) } diff -r 820cf124dced -r 942cc80ba18a src/Pure/library.scala --- a/src/Pure/library.scala Wed Jan 15 15:05:33 2020 +0100 +++ b/src/Pure/library.scala Wed Jan 15 16:18:24 2020 +0100 @@ -268,9 +268,6 @@ /* proper values */ - def proper[A](x: A): Option[A] = - if (x == null) None else Some(x) - def proper_string(s: String): Option[String] = if (s == null || s == "") None else Some(s)