@@ -111,24 +111,6 @@ class Class extends UserType {
111111 result = this .getCanonicalMember ( index ) .( TemplateVariable ) .getAnInstantiation ( )
112112 }
113113
114- /**
115- * DEPRECATED: Use `getCanonicalMember(int)` or `getAMember(int)` instead.
116- * Gets the `index`th member of this class.
117- */
118- deprecated Declaration getMember ( int index ) {
119- member ( underlyingElement ( this ) , index , unresolveElement ( result ) )
120- }
121-
122- /**
123- * DEPRECATED: As this includes a somewhat arbitrary number of
124- * template instantiations, it is unlikely to do what
125- * you need.
126- * Gets the number of members that this class has. This includes both
127- * templates that are in this class, and instantiations of those
128- * templates.
129- */
130- deprecated int getNumMember ( ) { result = count ( this .getAMember ( ) ) }
131-
132114 /**
133115 * Gets a private member declared in this class, struct or union.
134116 * For template members, this may be either the template or an
@@ -208,23 +190,6 @@ class Class extends UserType {
208190 */
209191 deprecated predicate hasCopyConstructor ( ) { this .getAMemberFunction ( ) instanceof CopyConstructor }
210192
211- /**
212- * Holds if this class has a copy assignment operator that is either
213- * explicitly declared (though possibly `= delete`) or is auto-generated,
214- * non-trivial and called from somewhere.
215- *
216- * DEPRECATED: There is more than one reasonable definition of what it means
217- * to have a copy assignment operator, and we do not want to promote one
218- * particular definition by naming it with this predicate. Having a copy
219- * assignment operator could mean that such a member is declared or defined
220- * in the source or that it is callable by a particular caller. For C++11,
221- * there's also a question of whether to include members that are defaulted
222- * or deleted.
223- */
224- deprecated predicate hasCopyAssignmentOperator ( ) {
225- this .getAMemberFunction ( ) instanceof CopyAssignmentOperator
226- }
227-
228193 /**
229194 * Like accessOfBaseMember but returns multiple results if there are multiple
230195 * paths to `base` through the inheritance graph.
@@ -1070,31 +1035,6 @@ class PartialClassTemplateSpecialization extends ClassTemplateSpecialization {
10701035 override string getAPrimaryQlClass ( ) { result = "PartialClassTemplateSpecialization" }
10711036}
10721037
1073- /**
1074- * An "interface" is a class that only contains pure virtual functions (and contains
1075- * at least one such function). For example:
1076- * ```
1077- * class MyInterfaceClass {
1078- * public:
1079- * virtual void myMethod1() = 0;
1080- * virtual void myMethod2() = 0;
1081- * };
1082- * ```
1083- *
1084- * DEPRECATED: This class is considered to be too specific for general usage.
1085- */
1086- deprecated class Interface extends Class {
1087- Interface ( ) {
1088- forex ( Declaration m |
1089- m .getDeclaringType ( ) = this .getABaseClass * ( ) and not compgenerated ( unresolveElement ( m ) )
1090- |
1091- m instanceof PureVirtualFunction
1092- )
1093- }
1094-
1095- override string getAPrimaryQlClass ( ) { result = "Interface" }
1096- }
1097-
10981038/**
10991039 * A class/struct derivation that is virtual. For example the derivation in
11001040 * the following code is a `VirtualClassDerivation`:
0 commit comments