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

@@ -32,9 +32,10 @@
using System;
using System.Collections.Generic;
using System.Text;
using Claunia.Encoding;
using DiscImageChef.CommonTypes;
using DiscImageChef.DiscImages;
using Encoding = System.Text.Encoding;
namespace DiscImageChef.Filesystems.AppleDOS
{
@@ -77,7 +78,7 @@ namespace DiscImageChef.Filesystems.AppleDOS
{
Name = "Apple DOS File System";
PluginUUID = new Guid("8658A1E9-B2E7-4BCC-9638-157A31B0A700\n");
CurrentEncoding = new Claunia.Encoding.LisaRoman();
CurrentEncoding = new LisaRoman();
}
public AppleDOS(Encoding encoding)
@@ -85,7 +86,7 @@ namespace DiscImageChef.Filesystems.AppleDOS
Name = "Apple DOS File System";
PluginUUID = new Guid("8658A1E9-B2E7-4BCC-9638-157A31B0A700\n");
// TODO: Until Apple ][ encoding is implemented
CurrentEncoding = new Claunia.Encoding.LisaRoman();
CurrentEncoding = new LisaRoman();
}
public AppleDOS(ImagePlugin imagePlugin, Partition partition, Encoding encoding)
@@ -95,7 +96,7 @@ namespace DiscImageChef.Filesystems.AppleDOS
Name = "Apple DOS File System";
PluginUUID = new Guid("8658A1E9-B2E7-4BCC-9638-157A31B0A700\n");
// TODO: Until Apple ][ encoding is implemented
CurrentEncoding = new Claunia.Encoding.LisaRoman();
CurrentEncoding = new LisaRoman();
}
}
}

View File

@@ -43,7 +43,7 @@ namespace DiscImageChef.Filesystems.AppleDOS
{
if(!mounted) return Errno.AccessDenied;
string[] pathElements = path.Split(new char[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
string[] pathElements = path.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
if(pathElements.Length != 1) return Errno.NotSupported;
string filename = pathElements[0].ToUpperInvariant();
@@ -66,7 +66,7 @@ namespace DiscImageChef.Filesystems.AppleDOS
{
if(!mounted) return Errno.AccessDenied;
string[] pathElements = path.Split(new char[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
string[] pathElements = path.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
if(pathElements.Length != 1) return Errno.NotSupported;
byte[] file;
@@ -108,7 +108,7 @@ namespace DiscImageChef.Filesystems.AppleDOS
{
if(!mounted) return Errno.AccessDenied;
string[] pathElements = path.Split(new char[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
string[] pathElements = path.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
if(pathElements.Length != 1) return Errno.NotSupported;
string filename = pathElements[0].ToUpperInvariant();
@@ -160,7 +160,7 @@ namespace DiscImageChef.Filesystems.AppleDOS
Errno CacheFile(string path)
{
string[] pathElements = path.Split(new char[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
string[] pathElements = path.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
if(pathElements.Length != 1) return Errno.NotSupported;
string filename = pathElements[0].ToUpperInvariant();

View File

@@ -35,6 +35,7 @@ using System.Runtime.InteropServices;
using System.Text;
using DiscImageChef.CommonTypes;
using DiscImageChef.DiscImages;
using Schemas;
namespace DiscImageChef.Filesystems.AppleDOS
{
@@ -92,13 +93,11 @@ namespace DiscImageChef.Filesystems.AppleDOS
information = sb.ToString();
xmlFSType = new Schemas.FileSystemType();
xmlFSType = new FileSystemType();
xmlFSType.Bootable = true;
xmlFSType.Clusters = (long)imagePlugin.ImageInfo.Sectors;
xmlFSType.ClusterSize = (int)imagePlugin.ImageInfo.SectorSize;
xmlFSType.Type = "Apple DOS";
return;
}
}
}

View File

@@ -33,6 +33,7 @@
using System;
using System.Runtime.InteropServices;
using DiscImageChef.Console;
using Schemas;
namespace DiscImageChef.Filesystems.AppleDOS
{
@@ -101,7 +102,7 @@ namespace DiscImageChef.Filesystems.AppleDOS
}
// Create XML metadata for mounted filesystem
xmlFSType = new Schemas.FileSystemType();
xmlFSType = new FileSystemType();
xmlFSType.Bootable = true;
xmlFSType.Clusters = (long)device.ImageInfo.Sectors;
xmlFSType.ClusterSize = vtoc.bytesPerSector;

View File

@@ -47,7 +47,7 @@ namespace DiscImageChef.Filesystems.AppleDOS
{
if(!mounted) return Errno.AccessDenied;
string[] pathElements = path.Split(new char[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
string[] pathElements = path.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
if(pathElements.Length != 1) return Errno.NotSupported;
string filename = pathElements[0].ToUpperInvariant();
@@ -81,7 +81,7 @@ namespace DiscImageChef.Filesystems.AppleDOS
{
if(!mounted) return Errno.AccessDenied;
string[] pathElements = path.Split(new char[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
string[] pathElements = path.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
if(pathElements.Length != 1) return Errno.NotSupported;
string filename = pathElements[0].ToUpperInvariant();