Permalink
Browse files

Remove the Host::gists method

  • Loading branch information...
Xion committed Sep 8, 2016
1 parent a326c71 commit 26746dfc2eac68b67753f71148eb9897a861914e
Showing with 0 additions and 10 deletions.
  1. +0 −5 src/hosts/github.rs
  2. +0 −5 src/hosts/mod.rs
View
@@ -37,11 +37,6 @@ impl GitHub {
impl Host for GitHub {
fn name(&self) -> &str { "GitHub" }
/// Get all GitHub gists belonging to given owner.
fn gists(&self, owner: &str) -> Vec<Gist> {
list_gists(owner)
}
/// Download the GitHub gist's repo & create the appropriate binary symlink.
///
/// If the gist hasn't been downloaded already, a clone of the gist's Git repo is performed.
View
@@ -20,11 +20,6 @@ pub trait Host : Send + Sync {
// Returns a user-visible name of the gists' host.
fn name(&self) -> &str;
/// List all the gists of given owner.
// TODO: change this to fn iter_gists(...) -> impl Iterator<Item=Gist>
// when it's supported in stable Rust
fn gists(&self, owner: &str) -> Vec<Gist>;
/// Download a current version of the gist.
///
/// If the gist has been downloaded previously,

0 comments on commit 26746df

Please sign in to comment.