Skip to content

Commit 26746df

Browse files
committed
Remove the Host::gists method
1 parent a326c71 commit 26746df

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/hosts/github.rs

-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ impl GitHub {
3737
impl Host for GitHub {
3838
fn name(&self) -> &str { "GitHub" }
3939

40-
/// Get all GitHub gists belonging to given owner.
41-
fn gists(&self, owner: &str) -> Vec<Gist> {
42-
list_gists(owner)
43-
}
44-
4540
/// Download the GitHub gist's repo & create the appropriate binary symlink.
4641
///
4742
/// If the gist hasn't been downloaded already, a clone of the gist's Git repo is performed.

src/hosts/mod.rs

-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ pub trait Host : Send + Sync {
2020
// Returns a user-visible name of the gists' host.
2121
fn name(&self) -> &str;
2222

23-
/// List all the gists of given owner.
24-
// TODO: change this to fn iter_gists(...) -> impl Iterator<Item=Gist>
25-
// when it's supported in stable Rust
26-
fn gists(&self, owner: &str) -> Vec<Gist>;
27-
2823
/// Download a current version of the gist.
2924
///
3025
/// If the gist has been downloaded previously,

0 commit comments

Comments
 (0)