REFACTOR: Remove unneeded code.

This commit is contained in:
2017-12-21 14:30:38 +00:00
parent 35ce7db892
commit dcd053b20d
343 changed files with 2842 additions and 2588 deletions

View File

@@ -36,6 +36,8 @@ using System.Runtime.InteropServices;
using System.Text;
using DiscImageChef.CommonTypes;
using DiscImageChef.Console;
using DiscImageChef.DiscImages;
using Schemas;
namespace DiscImageChef.Filesystems
{
@@ -61,7 +63,7 @@ namespace DiscImageChef.Filesystems
else CurrentEncoding = encoding;
}
public BTRFS(DiscImages.ImagePlugin imagePlugin, Partition partition, Encoding encoding)
public BTRFS(ImagePlugin imagePlugin, Partition partition, Encoding encoding)
{
Name = "B-tree file system";
PluginUUID = new Guid("C904CF15-5222-446B-B7DB-02EAC5D781B3");
@@ -125,7 +127,7 @@ namespace DiscImageChef.Filesystems
public Guid uuid;
}
public override bool Identify(DiscImages.ImagePlugin imagePlugin, Partition partition)
public override bool Identify(ImagePlugin imagePlugin, Partition partition)
{
if(partition.Start >= partition.End) return false;
@@ -153,11 +155,11 @@ namespace DiscImageChef.Filesystems
return btrfsSb.magic == btrfsMagic;
}
public override void GetInformation(DiscImages.ImagePlugin imagePlugin, Partition partition,
public override void GetInformation(ImagePlugin imagePlugin, Partition partition,
out string information)
{
StringBuilder sbInformation = new StringBuilder();
xmlFSType = new Schemas.FileSystemType();
xmlFSType = new FileSystemType();
information = "";
ulong sbSectorOff = 0x10000 / imagePlugin.GetSectorSize();
@@ -241,7 +243,7 @@ namespace DiscImageChef.Filesystems
information = sbInformation.ToString();
xmlFSType = new Schemas.FileSystemType();
xmlFSType = new FileSystemType();
xmlFSType.Clusters = (long)(btrfsSb.total_bytes / btrfsSb.sectorsize);
xmlFSType.ClusterSize = (int)btrfsSb.sectorsize;
xmlFSType.FreeClusters = xmlFSType.Clusters - (long)(btrfsSb.bytes_used / btrfsSb.sectorsize);