Skip to content

Commit

Permalink
remove useless fields
Browse files Browse the repository at this point in the history
  • Loading branch information
He1pa committed Aug 17, 2022
1 parent 54054e6 commit 4b59127
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions kclvm/sema/src/lint/lint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ use kclvm_error::{Level, Position};
pub struct LintContext {
/// What source file are we in.
pub filename: String,
/// What source file are we in.
pub lintstore: LintArray,
/// Symbol table, copied from resolver
pub scope: Scope,
/// Are we resolving the ast node start position.
pub start_pos: Position,
/// Are we resolving the ast node end position.
Expand Down
2 changes: 0 additions & 2 deletions kclvm/sema/src/lint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ impl LintContext {
pub fn dummy_ctx() -> Self {
LintContext {
filename: "".to_string(),
lintstore: CombinedLintPass::get_lints(),
scope: builtin_scope(),
start_pos: Position::dummy_pos(),
end_pos: Position::dummy_pos(),
}
Expand Down

0 comments on commit 4b59127

Please sign in to comment.