Skip to content

Commit

Permalink
chore: remove unused code (#2198)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys authored May 20, 2024
1 parent 3b70496 commit 959a05a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ee/tabby-schema/src/schema/repository/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,3 @@ pub enum RepositoryProviderStatus {
Pending,
Failed,
}

impl RepositoryProviderStatus {
pub fn new(access_token_set: bool, synced_at_set: bool) -> Self {
match (access_token_set, synced_at_set) {
(true, true) => RepositoryProviderStatus::Ready,
(true, false) => RepositoryProviderStatus::Pending,
_ => RepositoryProviderStatus::Failed,
}
}
}

0 comments on commit 959a05a

Please sign in to comment.