Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jb@evain.net>2017-03-22 03:55:17 +0300
committerJb Evain <jb@evain.net>2017-03-22 04:00:50 +0300
commitc27a3a24d61c49a1ca44b412fdc810df1a24165b (patch)
tree5674665e99637f50713dbff9676730c8226cc57d /Mono.Cecil.Cil
parent1530a21d652992e9adb749d207a4f4fd44ad8024 (diff)
Remove the PCL profile
Diffstat (limited to 'Mono.Cecil.Cil')
-rw-r--r--Mono.Cecil.Cil/PortablePdb.cs13
-rw-r--r--Mono.Cecil.Cil/Symbols.cs12
2 files changed, 0 insertions, 25 deletions
diff --git a/Mono.Cecil.Cil/PortablePdb.cs b/Mono.Cecil.Cil/PortablePdb.cs
index 7deddae..4416de1 100644
--- a/Mono.Cecil.Cil/PortablePdb.cs
+++ b/Mono.Cecil.Cil/PortablePdb.cs
@@ -11,10 +11,7 @@
using System;
using System.Collections.Generic;
using System.IO;
-
-#if !PCL
using System.IO.Compression;
-#endif
using Mono.Cecil.Metadata;
using Mono.Cecil.PE;
@@ -23,7 +20,6 @@ namespace Mono.Cecil.Cil {
public sealed class PortablePdbReaderProvider : ISymbolReaderProvider {
-#if !PCL
public ISymbolReader GetSymbolReader (ModuleDefinition module, string fileName)
{
Mixin.CheckModule (module);
@@ -32,7 +28,6 @@ namespace Mono.Cecil.Cil {
var file = File.OpenRead (Mixin.GetPdbFileName (fileName));
return GetSymbolReader (module, Disposable.Owned (file as Stream), file.Name);
}
-#endif
public ISymbolReader GetSymbolReader (ModuleDefinition module, Stream symbolStream)
{
@@ -149,7 +144,6 @@ namespace Mono.Cecil.Cil {
public sealed class EmbeddedPortablePdbReaderProvider : ISymbolReaderProvider {
-#if !PCL
public ISymbolReader GetSymbolReader (ModuleDefinition module, string fileName)
{
Mixin.CheckModule (module);
@@ -177,7 +171,6 @@ namespace Mono.Cecil.Cil {
return decompressed_stream;
}
-#endif
public ISymbolReader GetSymbolReader (ModuleDefinition module, Stream symbolStream)
{
@@ -223,7 +216,6 @@ namespace Mono.Cecil.Cil {
public sealed class PortablePdbWriterProvider : ISymbolWriterProvider
{
-#if !PCL
public ISymbolWriter GetSymbolWriter (ModuleDefinition module, string fileName)
{
Mixin.CheckModule (module);
@@ -232,7 +224,6 @@ namespace Mono.Cecil.Cil {
var file = File.OpenWrite (Mixin.GetPdbFileName (fileName));
return GetSymbolWriter (module, Disposable.Owned (file as Stream));
}
-#endif
public ISymbolWriter GetSymbolWriter (ModuleDefinition module, Stream symbolStream)
{
@@ -399,7 +390,6 @@ namespace Mono.Cecil.Cil {
public sealed class EmbeddedPortablePdbWriterProvider : ISymbolWriterProvider {
-#if !PCL
public ISymbolWriter GetSymbolWriter (ModuleDefinition module, string fileName)
{
Mixin.CheckModule (module);
@@ -409,7 +399,6 @@ namespace Mono.Cecil.Cil {
var pdb_writer = (PortablePdbWriter) new PortablePdbWriterProvider ().GetSymbolWriter (module, stream);
return new EmbeddedPortablePdbWriter (stream, pdb_writer);
}
-#endif
public ISymbolWriter GetSymbolWriter (ModuleDefinition module, Stream symbolStream)
{
@@ -417,7 +406,6 @@ namespace Mono.Cecil.Cil {
}
}
-#if !PCL
public sealed class EmbeddedPortablePdbWriter : ISymbolWriter, IMetadataSymbolWriter {
readonly Stream stream;
@@ -479,7 +467,6 @@ namespace Mono.Cecil.Cil {
((IMetadataSymbolWriter) writer).SetMetadata (metadata);
}
}
-#endif
#endif
diff --git a/Mono.Cecil.Cil/Symbols.cs b/Mono.Cecil.Cil/Symbols.cs
index 8b56a24..f18b2c8 100644
--- a/Mono.Cecil.Cil/Symbols.cs
+++ b/Mono.Cecil.Cil/Symbols.cs
@@ -690,13 +690,10 @@ namespace Mono.Cecil.Cil {
}
public interface ISymbolReaderProvider {
-#if !PCL
ISymbolReader GetSymbolReader (ModuleDefinition module, string fileName);
-#endif
ISymbolReader GetSymbolReader (ModuleDefinition module, Stream symbolStream);
}
-#if !PCL
public class DefaultSymbolReaderProvider : ISymbolReaderProvider {
readonly bool throw_if_no_symbol;
@@ -745,9 +742,7 @@ namespace Mono.Cecil.Cil {
throw new NotSupportedException ();
}
}
-#endif
-#if !PCL
enum SymbolKind {
NativePdb,
PortablePdb,
@@ -832,7 +827,6 @@ namespace Mono.Cecil.Cil {
throw new ArgumentException ();
}
}
-#endif
#if !READ_ONLY
@@ -845,13 +839,10 @@ namespace Mono.Cecil.Cil {
public interface ISymbolWriterProvider {
-#if !PCL
ISymbolWriter GetSymbolWriter (ModuleDefinition module, string fileName);
-#endif
ISymbolWriter GetSymbolWriter (ModuleDefinition module, Stream symbolStream);
}
-#if !PCL
public class DefaultSymbolWriterProvider : ISymbolWriterProvider {
public ISymbolWriter GetSymbolWriter (ModuleDefinition module, string fileName)
@@ -871,7 +862,6 @@ namespace Mono.Cecil.Cil {
throw new NotSupportedException ();
}
}
-#endif
#endif
}
@@ -921,7 +911,6 @@ namespace Mono.Cecil {
return null;
}
-#if !PCL
public static string GetPdbFileName (string assemblyFileName)
{
return Path.ChangeExtension (assemblyFileName, ".pdb");
@@ -950,6 +939,5 @@ namespace Mono.Cecil {
stream.Position = position;
}
}
-#endif
}
}