Skip to content

Commit

Permalink
Remove unused methods
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed Apr 26, 2024
1 parent ff7c5b8 commit 57e401c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
17 changes: 0 additions & 17 deletions ee/tabby-db/src/github_repository_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,6 @@ impl DbConn {
Ok(())
}

pub async fn reset_github_provider_access_token(&self, id: i64) -> Result<()> {
let res = query!(
"UPDATE github_repository_provider SET access_token = NULL WHERE id = ?",
id
)
.execute(&self.pool)
.await?;

if res.rows_affected() != 1 {
return Err(anyhow!(
"The specified Github repository provider does not exist"
));
}

Ok(())
}

pub async fn update_github_provider(
&self,
id: i64,
Expand Down
17 changes: 0 additions & 17 deletions ee/tabby-db/src/gitlab_repository_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,6 @@ impl DbConn {
Ok(())
}

pub async fn reset_gitlab_provider_access_token(&self, id: i64) -> Result<()> {
let res = query!(
"UPDATE gitlab_repository_provider SET access_token = NULL WHERE id = ?",
id
)
.execute(&self.pool)
.await?;

if res.rows_affected() != 1 {
return Err(anyhow!(
"The specified gitlab repository provider does not exist"
));
}

Ok(())
}

pub async fn update_gitlab_provider(
&self,
id: i64,
Expand Down

0 comments on commit 57e401c

Please sign in to comment.