Skip to content

Commit cc9b5bc

Browse files
authored
Merge pull request #1492 from mortend/obsolete
remove obsolete methods and properties (beta-3.0)
2 parents ee003de + d9c7ad2 commit cc9b5bc

File tree

14 files changed

+3
-151
lines changed

14 files changed

+3
-151
lines changed

Source/Fuse.Common/Json.uno

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -103,41 +103,6 @@ namespace Fuse
103103
else sb.Append("null");
104104
}
105105

106-
[Obsolete("Use Uno.Data.Json.JsonWriter.QuoteString() instead")]
107-
public static string Escape(string s)
108-
{
109-
var sb = new StringBuilder();
110-
Escape(s, sb);
111-
return sb.ToString();
112-
}
113-
114-
[Obsolete("Use Uno.Data.Json.JsonWriter.QuoteString() instead")]
115-
public static void Escape(string s, StringBuilder sb)
116-
{
117-
for (int i = 0; i < s.Length; i++)
118-
{
119-
if (s[i] == '\"')
120-
{
121-
if (sb == null) sb = new StringBuilder();
122-
sb.Append("\\\"");
123-
}
124-
else if (s[i] == '\\')
125-
{
126-
if (sb == null) sb = new StringBuilder();
127-
sb.Append("\\\\");
128-
}
129-
else if (s[i] == '\n')
130-
{
131-
if (sb == null) sb = new StringBuilder();
132-
sb.Append("\\n");
133-
}
134-
else
135-
{
136-
sb.Append(s[i]);
137-
}
138-
}
139-
}
140-
141106
/** Returns an escaped string encapsulated in Json quotes. */
142107
public static string ToLiteral(string s)
143108
{

Source/Fuse.Common/SystemFont.uno

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ namespace Fuse
4747
Bold,
4848
Heavy,
4949
Black,
50-
51-
[Obsolete]
52-
SemiBold = Semibold
5350
}
5451

5552
public enum Style

Source/Fuse.Controls.Panels/GraphicsView.ux.uno

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ namespace Fuse.Controls
284284
{
285285
get { return ActualPixelSize; }
286286
}
287+
287288
public float2 ActualPixelSize
288289
{
289290
get { return ActualSize * PixelsPerPoint; }

Source/Fuse.Nodes/VisualBounds.uno

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,6 @@ namespace Fuse
149149
return Box(add);
150150
}
151151

152-
[Obsolete("Please use the other overload (for performance)")]
153-
public VisualBounds Transform(float4x4 matrix)
154-
{
155-
return Transform(FastMatrix.FromFloat4x4(matrix));
156-
}
157-
158152
public VisualBounds Transform(FastMatrix fastMatrix)
159153
{
160154
if (IsInfinite || IsEmpty)
@@ -164,12 +158,6 @@ namespace Fuse
164158
return Box(n);
165159
}
166160

167-
[Obsolete("Please use the other overload (for performance)")]
168-
public VisualBounds TransformFlatten(float4x4 matrix)
169-
{
170-
return TransformFlatten(FastMatrix.FromFloat4x4(matrix));
171-
}
172-
173161
//OPT: This version could be optimized since it doesn't care about the Z results.
174162
public VisualBounds TransformFlatten(FastMatrix fastMatrix)
175163
{
@@ -263,12 +251,6 @@ namespace Fuse
263251
return "" + _box.Minimum + " " + _box.Maximum;
264252
}
265253

266-
[Obsolete("Please use the other overload (for performance)")]
267-
public static Box BoxTransform(Box box, float4x4 transform)
268-
{
269-
return BoxTransform(box, FastMatrix.FromFloat4x4(transform));
270-
}
271-
272254
static float Min8(float a, float b, float c, float d, float e, float f, float g, float h)
273255
{
274256
float min = a;

Source/Fuse.Scripting.JavaScript/Duktape/Function.uno

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ namespace Fuse.Scripting.Duktape
5050
return (Object)returnValue;
5151
}
5252

53-
public override Fuse.Scripting.Object Construct(params object[] args)
54-
{
55-
return Construct(_ctx, args);
56-
}
57-
5853
public override object Call(Scripting.Context context, params object[] args)
5954
{
6055
if (context != _ctx)
@@ -74,10 +69,5 @@ namespace Fuse.Scripting.Duktape
7469
_ctx.DukContext.pop();
7570
return returnValue;
7671
}
77-
78-
public override object Call(params object[] args)
79-
{
80-
return Call(_ctx, args);
81-
}
8272
}
8373
}

Source/Fuse.Scripting.JavaScript/Duktape/Object.uno

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ namespace Fuse.Scripting.Duktape
4747
return result;
4848
}
4949

50-
public override bool InstanceOf(Fuse.Scripting.Function type)
51-
{
52-
return InstanceOf(_ctx, type);
53-
}
54-
5550
public override object this[string key]
5651
{
5752
get
@@ -120,11 +115,6 @@ namespace Fuse.Scripting.Duktape
120115
return returnVal;
121116
}
122117

123-
public override object CallMethod(string name, params object[] args)
124-
{
125-
return CallMethod(_ctx, name, args);
126-
}
127-
128118
public override bool ContainsKey(string key)
129119
{
130120
if (key == null) throw new ArgumentNullException(nameof(key));
@@ -133,6 +123,5 @@ namespace Fuse.Scripting.Duktape
133123
_ctx.DukContext.pop();
134124
return result;
135125
}
136-
137126
}
138127
}

Source/Fuse.Scripting.JavaScript/JavaScriptCore/Function.uno

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ namespace Fuse.Scripting.JavaScriptCore
4040
return result;
4141
}
4242

43-
public override object Call(params object[] args)
44-
{
45-
return Call(_context, args);
46-
}
47-
4843
public override Scripting.Object Construct(Scripting.Context context, params object[] args)
4944
{
5045
// Ensure this function is being called from the context/vm it belongs to
@@ -62,11 +57,6 @@ namespace Fuse.Scripting.JavaScriptCore
6257
return result;
6358
}
6459

65-
public override Scripting.Object Construct(params object[] args)
66-
{
67-
return Construct(_context, args);
68-
}
69-
7060
public override bool Equals(Scripting.Function f)
7161
{
7262
return f is Function && _value.Equals(((Function)f)._value);

Source/Fuse.Scripting.JavaScript/JavaScriptCore/Object.uno

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ namespace Fuse.Scripting.JavaScriptCore
7777
_context._onError);
7878
}
7979

80-
public override bool InstanceOf(Scripting.Function type)
81-
{
82-
return InstanceOf(_context, type);
83-
}
84-
8580
public override object CallMethod(Scripting.Context context, string name, params object[] args)
8681
{
8782
if (context != _context)
@@ -108,11 +103,6 @@ namespace Fuse.Scripting.JavaScriptCore
108103
return result;
109104
}
110105

111-
public override object CallMethod(string name, params object[] args)
112-
{
113-
return CallMethod(_context, name, args);
114-
}
115-
116106
public override bool ContainsKey(string key)
117107
{
118108
bool result = false;

Source/Fuse.Scripting.JavaScript/V8/Function.uno

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@ namespace Fuse.Scripting.V8
5454
return result;
5555
}
5656

57-
public override object Call(params object[] args)
58-
{
59-
return Call(_context, args);
60-
}
61-
6257
public override Scripting.Object Construct(Scripting.Context context, params object[] args)
6358
{
6459
if (context != _context)
@@ -81,11 +76,6 @@ namespace Fuse.Scripting.V8
8176
return result;
8277
}
8378

84-
public override Scripting.Object Construct(params object[] args)
85-
{
86-
return Construct(_context, args);
87-
}
88-
8979
public override bool Equals(Scripting.Function f)
9080
{
9181
var that = f as Function;

Source/Fuse.Scripting.JavaScript/V8/Object.uno

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ namespace Fuse.Scripting.V8
8888
return (bool)_context._instanceOf.Call(_context, this, type);
8989
}
9090

91-
public override bool InstanceOf(Scripting.Function type)
92-
{
93-
return InstanceOf(_context, type);
94-
}
95-
9691
public override object CallMethod(Scripting.Context context, string name, params object[] args)
9792
{
9893
if (context != _context)
@@ -114,11 +109,6 @@ namespace Fuse.Scripting.V8
114109
return result;
115110
}
116111

117-
public override object CallMethod(string name, params object[] args)
118-
{
119-
return CallMethod(_context, name, args);
120-
}
121-
122112
public override bool ContainsKey(string key)
123113
{
124114
var cxt = _context._context;

0 commit comments

Comments
 (0)