Removed obsolete manual detection of debug symbol file.

This commit is contained in:
Jarl Gullberg 2017-05-29 18:14:46 +02:00
parent a29f72663c
commit 9f4eb8546e
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23

View file

@ -69,19 +69,7 @@ namespace OpenTK.Rewrite
// We want to keep a valid symbols file (pdb or mdb)
var read_params = new ReaderParameters();
var write_params = new WriterParameters();
var pdb = Path.ChangeExtension(file, "pdb");
var mdb = file + ".mdb";
ISymbolReaderProvider provider = null;
if (File.Exists(pdb))
{
provider = new Mono.Cecil.Pdb.PdbReaderProvider();
}
else if (File.Exists(mdb))
{
provider = new Mono.Cecil.Mdb.MdbReaderProvider();
}
read_params.SymbolReaderProvider = provider;
read_params.ReadSymbols = true;
read_params.ReadWrite = true;
write_params.WriteSymbols = true;