@@ -129,15 +129,6 @@ private predicate instanceFieldAssign(Expr src, FieldAccess fa) {
129
129
)
130
130
}
131
131
132
- /**
133
- * Gets an upper bound on the type of `f`.
134
- */
135
- private Type getFieldTypeBound ( Field f ) {
136
- fieldTypeFlow ( f , result , _)
137
- or
138
- not fieldTypeFlow ( f , _, _) and result = f .getType ( )
139
- }
140
-
141
132
private newtype TContent =
142
133
TFieldContent ( InstanceField f ) or
143
134
TCollectionContent ( ) or
@@ -154,12 +145,6 @@ class Content extends TContent {
154
145
predicate hasLocationInfo ( string path , int sl , int sc , int el , int ec ) {
155
146
path = "" and sl = 0 and sc = 0 and el = 0 and ec = 0
156
147
}
157
-
158
- /** Gets the erased type of the object containing this content. */
159
- abstract DataFlowType getContainerType ( ) ;
160
-
161
- /** Gets the erased type of this content. */
162
- abstract DataFlowType getType ( ) ;
163
148
}
164
149
165
150
private class FieldContent extends Content , TFieldContent {
@@ -174,26 +159,14 @@ private class FieldContent extends Content, TFieldContent {
174
159
override predicate hasLocationInfo ( string path , int sl , int sc , int el , int ec ) {
175
160
f .getLocation ( ) .hasLocationInfo ( path , sl , sc , el , ec )
176
161
}
177
-
178
- override DataFlowType getContainerType ( ) { result = getErasedRepr ( f .getDeclaringType ( ) ) }
179
-
180
- override DataFlowType getType ( ) { result = getErasedRepr ( getFieldTypeBound ( f ) ) }
181
162
}
182
163
183
164
private class CollectionContent extends Content , TCollectionContent {
184
165
override string toString ( ) { result = "collection" }
185
-
186
- override DataFlowType getContainerType ( ) { none ( ) }
187
-
188
- override DataFlowType getType ( ) { none ( ) }
189
166
}
190
167
191
168
private class ArrayContent extends Content , TArrayContent {
192
169
override string toString ( ) { result = "array" }
193
-
194
- override DataFlowType getContainerType ( ) { none ( ) }
195
-
196
- override DataFlowType getType ( ) { none ( ) }
197
170
}
198
171
199
172
/**
0 commit comments