@@ -8,9 +8,6 @@ package object ujson{
88 BufferedValue .maybeSortKeysTransform(Readable , t, sortKeys, v)
99 }
1010
11- // @deprecated("Binary Compatibility Stub", "upickle after 3.1.4")
12- def transform [T ](t : Readable ,
13- v : upickle.core.Visitor [_, T ]): T = transform(t, v, sortKeys = false )
1411 /**
1512 * Read the given JSON input as a JSON struct
1613 */
@@ -31,13 +28,6 @@ package object ujson{
3128 writer.toString
3229 }
3330
34- // @deprecated("Binary Compatibility Stub", "upickle after 3.1.4")
35- def write (t : Value .Value ,
36- indent : Int ,
37- escapeUnicode : Boolean ): String = {
38- write(t, indent, escapeUnicode, sortKeys = false )
39- }
40-
4131 /**
4232 * Write the given JSON struct as a JSON String to the given Writer
4333 */
@@ -49,14 +39,6 @@ package object ujson{
4939 transform(t, Renderer (out, indent, escapeUnicode), sortKeys)
5040 }
5141
52- // @deprecated("Binary Compatibility Stub", "upickle after 3.1.4")
53- def writeTo (t : Value .Value ,
54- out : java.io.Writer ,
55- indent : Int ,
56- escapeUnicode : Boolean ): Unit = {
57- writeTo(t, out, indent, escapeUnicode, sortKeys = false )
58- }
59-
6042 def writeToOutputStream (t : Value .Value ,
6143 out : java.io.OutputStream ,
6244 indent : Int = - 1 ,
@@ -65,14 +47,6 @@ package object ujson{
6547 transform(t, new BaseByteRenderer (out, indent, escapeUnicode), sortKeys)
6648 }
6749
68- // @deprecated("Binary Compatibility Stub", "upickle after 3.1.4")
69- def writeToOutputStream (t : Value .Value ,
70- out : java.io.OutputStream ,
71- indent : Int ,
72- escapeUnicode : Boolean ): Unit = {
73- writeToOutputStream(t, out, indent, escapeUnicode, sortKeys = false )
74- }
75-
7650 def writeToByteArray (t : Value .Value ,
7751 indent : Int = - 1 ,
7852 escapeUnicode : Boolean = false ,
@@ -82,13 +56,6 @@ package object ujson{
8256 baos.toByteArray
8357 }
8458
85- // @deprecated("Binary Compatibility Stub", "upickle after 3.1.4")
86- def writeToByteArray (t : Value .Value ,
87- indent : Int ,
88- escapeUnicode : Boolean ): Array [Byte ] = {
89- writeToByteArray(t, indent, escapeUnicode, sortKeys = false )
90- }
91-
9259 /**
9360 * Parse the given JSON input, failing if it is invalid
9461 */
@@ -105,13 +72,7 @@ package object ujson{
10572 reformatTo(s, writer, indent, escapeUnicode, sortKeys)
10673 writer.toString
10774 }
108-
109- // @deprecated("Binary Compatibility Stub", "upickle after 3.1.4")
110- def reformat (s : Readable ,
111- indent : Int ,
112- escapeUnicode : Boolean ): String = {
113- reformat(s, indent, escapeUnicode, sortKeys = false )
114- }
75+
11576 /**
11677 * Parse the given JSON input and write it to a string with
11778 * the configured formatting to the given Writer
@@ -123,14 +84,7 @@ package object ujson{
12384 sortKeys : Boolean = false ): Unit = {
12485 transform(s, Renderer (out, indent, escapeUnicode), sortKeys)
12586 }
126-
127- // @deprecated("Binary Compatibility Stub", "upickle after 3.1.4")
128- def reformatTo (s : Readable ,
129- out : java.io.Writer ,
130- indent : Int ,
131- escapeUnicode : Boolean ): Unit = {
132- reformatTo(s, out, indent, escapeUnicode, sortKeys = false )
133- }
87+
13488 /**
13589 * Parse the given JSON input and write it to a string with
13690 * the configured formatting to the given Writer
@@ -142,15 +96,7 @@ package object ujson{
14296 sortKeys : Boolean = false ): Unit = {
14397 transform(s, new BaseByteRenderer (out, indent, escapeUnicode), sortKeys)
14498 }
145-
146- // @deprecated("Binary Compatibility Stub", "upickle after 3.1.4")
147- def reformatToOutputStream (s : Readable ,
148- out : java.io.OutputStream ,
149- indent : Int ,
150- escapeUnicode : Boolean ): Unit = {
151- reformatToOutputStream(s, out, indent, escapeUnicode, sortKeys = false )
152- }
153-
99+
154100 def reformatToByteArray (s : Readable ,
155101 indent : Int = - 1 ,
156102 escapeUnicode : Boolean = false ,
@@ -159,16 +105,4 @@ package object ujson{
159105 reformatToOutputStream(s, baos, indent, escapeUnicode, sortKeys)
160106 baos.toByteArray
161107 }
162-
163- // @deprecated("Binary Compatibility Stub", "upickle after 3.1.4")
164- def reformatToByteArray (s : Readable ,
165- indent : Int ,
166- escapeUnicode : Boolean ): Array [Byte ] = {
167- reformatToByteArray(s, indent, escapeUnicode, sortKeys = false )
168- }
169- // End ujson
170- @ deprecated(" use ujson.Value" )
171- type Js = Value
172- @ deprecated(" use ujson.Value" )
173- val Js = Value
174108}
0 commit comments