Skip to content

Commit 6ba05a3

Browse files
committed
refactor: move out db types/obsolete types
1 parent 979e9a4 commit 6ba05a3

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

src/lib.rs

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@ pub struct TraceLowLevelRecord {
3333
pub events: Vec<TraceLowLevelEvent>,
3434
}
3535

36-
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
37-
pub struct TraceRecord {
38-
pub workdir: PathBuf,
39-
pub paths: Vec<String>,
40-
pub calls: Vec<DbCall>,
41-
pub steps: Vec<DbStep>,
42-
pub variables: Vec<Vec<VariableRecord>>,
43-
pub types: Vec<TypeRecord>,
44-
pub events: Vec<DbRecordEvent>,
45-
}
46-
4736
// call keys:
4837

4938
#[derive(Debug, Default, Copy, Clone, PartialEq, Serialize, Deserialize)]
@@ -126,17 +115,6 @@ pub struct VariableId(pub usize);
126115
#[derive(Debug, Copy, Clone, Serialize, Deserialize)]
127116
pub struct FunctionId(pub usize);
128117

129-
#[derive(Debug, Clone, Serialize, Deserialize)]
130-
pub struct DbCall {
131-
pub key: CallKey,
132-
pub function_id: FunctionId,
133-
pub args: Vec<ArgRecord>,
134-
pub return_value: ValueRecord,
135-
pub step_id: StepId,
136-
pub depth: usize,
137-
pub parent_key: CallKey,
138-
pub children_keys: Vec<CallKey>,
139-
}
140118

141119
#[derive(Debug, Clone, Serialize, Deserialize)]
142120
pub struct CallRecord {
@@ -158,25 +136,13 @@ pub struct FunctionRecord {
158136
pub name: String,
159137
}
160138

161-
#[derive(Debug, Clone, Serialize, Deserialize)]
162-
pub struct BreakpointRecord {
163-
pub is_active: bool,
164-
}
165139

166140
#[derive(Debug, Clone, Serialize, Deserialize)]
167141
pub struct ArgRecord {
168142
pub name: String,
169143
pub value: ValueRecord,
170144
}
171145

172-
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
173-
pub struct DbStep {
174-
pub step_id: StepId,
175-
pub path_id: PathId,
176-
pub line: Line,
177-
pub call_key: CallKey,
178-
}
179-
180146
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
181147
pub struct StepRecord {
182148
pub path_id: PathId,
@@ -201,13 +167,6 @@ pub struct RecordEvent {
201167
pub content: String,
202168
}
203169

204-
#[derive(Debug, Clone, Serialize, Deserialize)]
205-
pub struct DbRecordEvent {
206-
pub kind: EventLogKind,
207-
pub content: String,
208-
pub step_id: StepId,
209-
}
210-
211170
#[derive(Debug, Default, Copy, Clone, Serialize, Deserialize, PartialEq)]
212171
#[serde(transparent)]
213172
pub struct TypeId(pub usize);

0 commit comments

Comments
 (0)