mirror of
https://github.com/bitwarden/mobile
synced 2026-01-06 02:23:57 +00:00
get rid of old refection and memory services
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
namespace Bit.App.Abstractions
|
||||
{
|
||||
public interface IMemoryService
|
||||
{
|
||||
MemoryInfo GetInfo();
|
||||
void Check();
|
||||
}
|
||||
|
||||
public class MemoryInfo
|
||||
{
|
||||
public long FreeMemory { get; set; }
|
||||
public long MaxMemory { get; set; }
|
||||
public long TotalMemory { get; set; }
|
||||
public long UsedMemory => TotalMemory - FreeMemory;
|
||||
|
||||
public double HeapUsage()
|
||||
{
|
||||
return UsedMemory / (double)TotalMemory;
|
||||
}
|
||||
|
||||
public double Usage()
|
||||
{
|
||||
return UsedMemory / (double)MaxMemory;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
using System;
|
||||
using Bit.App.Controls;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace Bit.App.Abstractions
|
||||
{
|
||||
public interface IReflectionService
|
||||
{
|
||||
Func<double, double, SizeRequest> GetVisualElementOnSizeRequest(ExtendedTableView tableView);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user