- show correct number of comment

- remove unused function
This commit is contained in:
Jonathan Ernst
2005-02-09 23:48:01 +00:00
committed by WineHQ
parent b9b278e14b
commit ac052e6c84
3 changed files with 43 additions and 67 deletions

View File

@@ -263,19 +263,6 @@ function grab_comments($versionId, $parentId = -1)
}
/**
* grab comments for appId / versionId
* if parentId is not -1 only comments for that thread are returned
*/
function count_comments($versionId)
{
$qstring = "SELECT count(commentId) as hits FROM appComments WHERE versionId = $versionId";
$result = query_appdb($qstring);
$ob = mysql_fetch_object($result);
return $ob->hits;
}
/**
* display nested comments
* handle is a db result set
@@ -295,6 +282,7 @@ function do_display_comments_nested($handle)
}
}
function display_comments_nested($versionId, $threadId)
{
$result = grab_comments($versionId, $threadId);