@@ -48,22 +48,13 @@ public QualifiedModuleName(IVBProject project)
48
48
_projectName = project . Name ;
49
49
ProjectPath = string . Empty ;
50
50
ProjectId = GetProjectId ( project ) ;
51
- ModuleContentHashOnCreation = GetContentHash ( null ) ;
52
51
}
53
52
54
53
public QualifiedModuleName ( IVBComponent component )
55
54
{
56
55
ComponentType = component . Type ;
57
56
_componentName = component . IsWrappingNullReference ? string . Empty : component . Name ;
58
57
59
- //note: We set this property in order to stabelize the component.
60
- //For some reason, components sometimes seem to get removed on the COM side although
61
- //an RCW is still holding a reference. For some reason, opening the CodeModule of a
62
- //component seems to prevent this.
63
- //This is a hack to open the code module on each component for which we get a QMN
64
- //in a way that does not get optimized away.
65
- ModuleContentHashOnCreation = GetContentHash ( component ) ;
66
-
67
58
using ( var components = component . Collection )
68
59
{
69
60
using ( var project = components . Parent )
@@ -96,7 +87,6 @@ public QualifiedModuleName(string projectName, string projectPath, string compon
96
87
ProjectId = "External" + $ "{ _projectName } ;{ ProjectPath } ". GetHashCode ( ) . ToString ( CultureInfo . InvariantCulture ) ;
97
88
_componentName = componentName ;
98
89
ComponentType = ComponentType . ComComponent ;
99
- ModuleContentHashOnCreation = GetContentHash ( null ) ;
100
90
}
101
91
102
92
public QualifiedMemberName QualifyMemberName ( string member )
@@ -118,7 +108,6 @@ public QualifiedMemberName QualifyMemberName(string member)
118
108
public string ProjectName => _projectName ?? string . Empty ;
119
109
120
110
public string ProjectPath { get ; }
121
- public int ModuleContentHashOnCreation { get ; }
122
111
123
112
public override string ToString ( )
124
113
{
0 commit comments