Skip to content

Commit 38e4492

Browse files
authored
Merge pull request #8036 from jketema/remove-legacy-relations-2
C++: Remove some unused legacy relations from the DB scheme - Take 2
2 parents bfa14fa + 3b2584a commit 38e4492

File tree

10 files changed

+8501
-2537
lines changed

10 files changed

+8501
-2537
lines changed

cpp/downgrades/2cd420191e5f782589b4e4efb70127de265390dd/old.dbscheme

Lines changed: 2095 additions & 0 deletions
Large diffs are not rendered by default.

cpp/downgrades/2cd420191e5f782589b4e4efb70127de265390dd/semmlecode.cpp.dbscheme

Lines changed: 2136 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
description: Remove unused legacy relations
2+
compatibility: backwards

cpp/ql/lib/semmlecode.cpp.dbscheme

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -135,52 +135,11 @@ externalData(
135135
string value : string ref
136136
);
137137

138-
/**
139-
* The date of the snapshot.
140-
*/
141-
snapshotDate(unique date snapshotDate : date ref);
142-
143138
/**
144139
* The source location of the snapshot.
145140
*/
146141
sourceLocationPrefix(string prefix : string ref);
147142

148-
/**
149-
* Data used by the 'duplicate code' detection.
150-
*/
151-
duplicateCode(
152-
unique int id : @duplication,
153-
string relativePath : string ref,
154-
int equivClass : int ref
155-
);
156-
157-
/**
158-
* Data used by the 'similar code' detection.
159-
*/
160-
similarCode(
161-
unique int id : @similarity,
162-
string relativePath : string ref,
163-
int equivClass : int ref
164-
);
165-
166-
/**
167-
* Data used by the 'duplicate code' and 'similar code' detection.
168-
*/
169-
@duplication_or_similarity = @duplication | @similarity
170-
171-
/**
172-
* Data used by the 'duplicate code' and 'similar code' detection.
173-
*/
174-
#keyset[id, offset]
175-
tokens(
176-
int id : @duplication_or_similarity ref,
177-
int offset : int ref,
178-
int beginLine : int ref,
179-
int beginColumn : int ref,
180-
int endLine : int ref,
181-
int endColumn : int ref
182-
);
183-
184143
/**
185144
* Information about packages that provide code used during compilation.
186145
* The `id` is just a unique identifier.

0 commit comments

Comments
 (0)