Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Natoandro committed Sep 19, 2024
1 parent ac0cb07 commit 6b9e63a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions src/typegraph/core/src/runtimes/prisma/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ impl PrismaContext {

pub fn register_pair(&mut self, pair: CandidatePair) -> Result<bool> {
if !self.is_registered(&pair)? {
// let id = self.next_id();
let pair = pair.ordered()?;

let rel_name = pair.rel_name()?;
Expand Down Expand Up @@ -223,12 +222,6 @@ impl PrismaContext {
}
}

// fn next_id(&self) -> usize {
// let id = self.counter.get() + 1;
// self.counter.set(id);
// id
// }

fn convert_scalar_prop(
&self,
ctx: &mut TypegraphContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ impl TypeGen for WithAggregateFilters {
}

fn name(&self) -> String {
// TODO model id??
let name = self.model_id.name().unwrap().unwrap();
format!("{name}WithAggregates")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ impl TypeGen for InputType {
let suffix = if self.skip_rel.is_empty() {
"".to_string()
} else {
// TODO what is the casing of `skip_rel`?
format!("Excluding{}", self.skip_rel.join("And"))
};
let op = match self.operation {
Expand Down

0 comments on commit 6b9e63a

Please sign in to comment.