Skip to content
This repository was archived by the owner on Mar 30, 2019. It is now read-only.

Commit c578030

Browse files
committed
Remove some methods to try get element, as if an element is not found, Direct2D only returns a zero pointer with a S_Ok hresult
1 parent 14ce60b commit c578030

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

Source/SharpDX.Direct2D1/SvgDocument.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public partial class SvgDocument
1111
/// Finds an svg element by id
1212
/// </summary>
1313
/// <param name="id">Id to lookup for</param>
14-
/// <returns>SvgElement</returns>
14+
/// <returns>SvgElement if found, null otherwise</returns>
1515
public SvgElement FindElementById(string id)
1616
{
1717
SharpDX.Result __result__;
@@ -21,19 +21,5 @@ public SvgElement FindElementById(string id)
2121
__result__.CheckError();
2222
return svgElement;
2323
}
24-
25-
/// <summary>
26-
/// Try to find an element by id
27-
/// </summary>
28-
/// <param name="id">id to search for</param>
29-
/// <param name="svgElement">When this method completes, contains the relevant element (if applicable)</param>
30-
/// <returns>true if element has been found, false otherwise</returns>
31-
public bool TryFindElementById(string id, out SvgElement svgElement)
32-
{
33-
SharpDX.Result __result__;
34-
__result__ = TryFindElementById_(id, out svgElement);
35-
36-
return __result__.Code >= 0;
37-
}
3824
}
3925
}

0 commit comments

Comments
 (0)