Remove non-used code and add a Count property

This commit is contained in:
de4dot
2012-11-06 23:52:17 +01:00
parent c5dba1d89b
commit 0f414d4d44
+2 -15
View File
@@ -23,25 +23,12 @@ using dot10.DotNet.MD;
using dot10.DotNet;
namespace de4dot.blocks {
public interface IStringDecrypter {
string decrypt(uint token);
}
[Serializable]
public class DumpedMethods {
Dictionary<uint, DumpedMethod> methods = new Dictionary<uint, DumpedMethod>();
IStringDecrypter stringDecrypter = new NoStringDecrypter();
[Serializable]
class NoStringDecrypter : IStringDecrypter {
public string decrypt(uint token) {
return null;
}
}
public IStringDecrypter StringDecrypter {
get { return stringDecrypter; }
set { stringDecrypter = value; }
public int Count {
get { return methods.Count; }
}
public void add(uint token, DumpedMethod info) {