Skip to content

Commit 33cb37d

Browse files
committed
Remove TODO and unnecessary code
1 parent 6a13c79 commit 33cb37d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/app/GistController.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ trait GistControllerBase extends ControllerBase {
2222
get("/gist"){
2323
if(context.loginAccount.isDefined){
2424
val gists = getRecentGists(context.loginAccount.get.userName, 0, 4)
25-
gist.html.edit(gists, None, Seq(("", JGitUtil.ContentInfo("text", None, Some("UTF-8")))))(context)
25+
gist.html.edit(gists, None, Seq(("", JGitUtil.ContentInfo("text", None, Some("UTF-8")))))
2626
} else {
2727
val page = request.getParameter("page") match {
2828
case ""|null => 1
@@ -254,7 +254,7 @@ trait GistControllerBase extends ControllerBase {
254254
}
255255

256256
val fullName = getAccountByUserName(userName).get.fullName
257-
gist.html.list(Some(GistUser(userName, fullName)), gists, page, page * Limit < result._2)(context) // TODO Paging
257+
gist.html.list(Some(GistUser(userName, fullName)), gists, page, page * Limit < result._2)
258258
}
259259
case Some(repoName) => {
260260
val gitdir = new File(GistRepoDir, userName + "/" + repoName)

0 commit comments

Comments
 (0)