From bc0f7182ae7fd927a6376786a4935cf5c9ea7012 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Sun, 5 Oct 2014 22:25:08 -0700 Subject: [PATCH] removed unused methods from Commit struct --- shared/model/commit.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/shared/model/commit.go b/shared/model/commit.go index af86023a..7e4c5710 100644 --- a/shared/model/commit.go +++ b/shared/model/commit.go @@ -67,18 +67,3 @@ type CommitRepo struct { Created int64 `meddler:"commit_created" json:"created_at"` Updated int64 `meddler:"commit_updated" json:"updated_at"` } - -// Returns the Short (--short) Commit Hash. -func (c *CommitRepo) ShaShort() string { - if len(c.Sha) > 8 { - return c.Sha[:8] - } else { - return c.Sha - } -} - -// Returns the Started Date as an ISO8601 -// formatted string. -func (c *CommitRepo) FinishedString() string { - return time.Unix(c.Finished, 0).Format("2006-01-02T15:04:05Z") -}