Skip to content

Commit

Permalink
Remove obsolete methods from Controls (#73)
Browse files Browse the repository at this point in the history
- [Controls] Remove obsolete methods from Controls (dotnet#1644)
  • Loading branch information
rookiejava committed Aug 4, 2021
1 parent 3413fa8 commit 482fbdc
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 307 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ static bool PageIsVisible(Page page)
{
return false;
}
#pragma warning disable CS0618 // Type or member is obsolete
if (parentPage is MasterDetailPage mdPage && mdPage.Master == parent && !mdPage.IsPresented)
#pragma warning restore CS0618 // Type or member is obsolete
if (parentPage is FlyoutPage flyoutPage && flyoutPage.Flyout == parent && !flyoutPage.IsPresented)
{
return false;
}
Expand Down
140 changes: 0 additions & 140 deletions src/Compatibility/Core/src/Tizen/Renderers/MasterDetailContainer.cs

This file was deleted.

158 changes: 0 additions & 158 deletions src/Compatibility/Core/src/Tizen/Renderers/MasterDetailPageRenderer.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ protected virtual void AddChild(Element child)

protected virtual void AddHeadlessChild(VisualElement element, IContainable<EvasObject> parent)
{
foreach (var child in element.LogicalChildren)
foreach (var child in (element as IVisualTreeElement).GetVisualChildren())
{
if (child is VisualElement visualChild)
{
Expand Down
3 changes: 0 additions & 3 deletions src/Compatibility/Core/src/Tizen/StaticRegistrar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ public static void RegisterHandlers(Dictionary<Type, Func<IRegisterable>> custom
Registered.Register(typeof(CarouselPage), () => new CarouselPageRenderer());
Registered.Register(typeof(Page), () => new PageRenderer());
Registered.Register(typeof(NavigationPage), () => new NavigationPageRenderer());
#pragma warning disable CS0618 // Type or member is obsolete
Registered.Register(typeof(MasterDetailPage), () => new MasterDetailPageRenderer());
#pragma warning restore CS0618 // Type or member is obsolete
Registered.Register(typeof(FlyoutPage), () => new FlyoutPageRenderer());
Registered.Register(typeof(TabbedPage), () => new TabbedPageRenderer());
Registered.Register(typeof(Label), () => new LabelRenderer());
Expand Down
2 changes: 0 additions & 2 deletions src/Compatibility/Core/src/Tizen/TizenPlatformServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ public IIsolatedStorageFile GetUserStoreForApplication()

public string GetHash(string input) => Crc64.GetHash(input);

string IPlatformServices.GetMD5Hash(string input) => GetHash(input);

public void QuitApplication()
{
Forms.Context.Exit();
Expand Down

0 comments on commit 482fbdc

Please sign in to comment.