Skip to content

Commit

Permalink
Comment out unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
minodisk committed Feb 2, 2016
1 parent fefeef1 commit b69ff22
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions model/user.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
package model

import (
"encoding/json"

"github.com/minodisk/qiitactl/api"
)

// Qiita上のユーザを表します。
type User struct {
Description string `json:"description"` // 自己紹介文
Expand All @@ -25,11 +19,11 @@ type User struct {
WebsiteUrl string `json:"website_url"` // 設定しているWebサイトのURL
}

func ReadAuthenticated(client api.Client) (user User, err error) {
body, err := client.Get("", "/authenticated_user", nil)
if err != nil {
return
}
err = json.Unmarshal(body, &user)
return
}
// func ReadAuthenticated(client api.Client) (user User, err error) {
// body, err := client.Get("", "/authenticated_user", nil)
// if err != nil {
// return
// }
// err = json.Unmarshal(body, &user)
// return
// }

0 comments on commit b69ff22

Please sign in to comment.