aboutsummaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-17 16:11:44 -0400
committerUnknwon <u@gogs.io>2015-09-17 16:11:44 -0400
commit3fb1b6a608625067a76ba90f9855d48c4d6555bd (patch)
tree5cb663bd07a58bf830b01483465edebf938000ff /models/models.go
parent562e47f31ced80adc6ffa629e2d8459465c369e9 (diff)
downloadgitea-3fb1b6a608625067a76ba90f9855d48c4d6555bd.tar.gz
gitea-3fb1b6a608625067a76ba90f9855d48c4d6555bd.zip
drop oauth2 feature support
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/models.go b/models/models.go
index 8149bb51b1..b26cf60b64 100644
--- a/models/models.go
+++ b/models/models.go
@@ -78,7 +78,7 @@ var (
func init() {
tables = append(tables,
- new(User), new(PublicKey), new(Oauth2), new(AccessToken),
+ new(User), new(PublicKey), new(AccessToken),
new(Repository), new(DeployKey), new(Collaboration), new(Access),
new(Watch), new(Star), new(Follow), new(Action),
new(Issue), new(PullRequest), new(Comment), new(Attachment), new(IssueUser),
@@ -236,7 +236,7 @@ func GetStatistic() (stats Statistic) {
stats.Counter.Access, _ = x.Count(new(Access))
stats.Counter.Issue, _ = x.Count(new(Issue))
stats.Counter.Comment, _ = x.Count(new(Comment))
- stats.Counter.Oauth, _ = x.Count(new(Oauth2))
+ stats.Counter.Oauth = 0
stats.Counter.Follow, _ = x.Count(new(Follow))
stats.Counter.Mirror, _ = x.Count(new(Mirror))
stats.Counter.Release, _ = x.Count(new(Release))