Skip to content

Commit b26df5e

Browse files
committed
Removed searchPath member.
1 parent ecc0f34 commit b26df5e

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Symbols/SymbolReader.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,9 @@ public class SymbolReader : IDisposable
1313
private ComDisposableWrapper<DiaSource> diaSource;
1414
private ComDisposableWrapper<IDiaSession> diaSession;
1515

16-
private readonly string searchPath;
17-
18-
public SymbolReader(string searchPath)
16+
public SymbolReader()
1917
{
2018
diaSource = new ComDisposableWrapper<DiaSource>(new DiaSource());
21-
22-
this.searchPath = searchPath;
2319
}
2420

2521
protected virtual void Dispose(bool disposing)
@@ -62,7 +58,7 @@ public static SymbolReader FromModule(Module module, string searchPath)
6258
{
6359
Contract.Requires(module != null);
6460

65-
var reader = new SymbolReader(searchPath);
61+
var reader = new SymbolReader();
6662
reader.diaSource.Interface.loadDataForExe(module.Path, searchPath, null);
6763
reader.CreateSession();
6864
return reader;
@@ -72,7 +68,7 @@ public static SymbolReader FromDatabase(string path)
7268
{
7369
Contract.Requires(path != null);
7470

75-
var reader = new SymbolReader(null);
71+
var reader = new SymbolReader();
7672
reader.diaSource.Interface.loadDataFromPdb(path);
7773
reader.CreateSession();
7874
return reader;

0 commit comments

Comments
 (0)