Skip to content
Snippets Groups Projects
Commit f37b4b81 authored by Bruce Cowan's avatar Bruce Cowan
Browse files

Remove pointless docstrings

parent 8d51c35f
No related branches found
No related tags found
No related merge requests found
...@@ -78,12 +78,6 @@ rugby_score_store_class_init (RugbyScoreStoreClass *klass) ...@@ -78,12 +78,6 @@ rugby_score_store_class_init (RugbyScoreStoreClass *klass)
G_PARAM_READWRITE); G_PARAM_READWRITE);
g_object_class_install_property (obj_class, PROP_SCORE, pspecs[PROP_SCORE]); g_object_class_install_property (obj_class, PROP_SCORE, pspecs[PROP_SCORE]);
/**
* RugbyScoreStore::finished:
* @store: the object which received the signal
*
* Emitted when possibilities checking has finished.
*/
signals[FINISHED] = signals[FINISHED] =
g_signal_new ("finished", g_signal_new ("finished",
G_TYPE_FROM_CLASS (obj_class), G_TYPE_FROM_CLASS (obj_class),
...@@ -146,28 +140,12 @@ rugby_score_store_init (RugbyScoreStore *store) ...@@ -146,28 +140,12 @@ rugby_score_store_init (RugbyScoreStore *store)
store->score = 0; store->score = 0;
} }
/**
* rugby_score_store_new:
*
* Creates a #RugbyScoreStore. This can be used to update a #GtkTreeView with
* possibilities.
*
* Returns: a new #RugbyScoreStore
*/
RugbyScoreStore * RugbyScoreStore *
rugby_score_store_new (void) rugby_score_store_new (void)
{ {
return g_object_new (RUGBY_TYPE_SCORE_STORE, NULL); return g_object_new (RUGBY_TYPE_SCORE_STORE, NULL);
} }
/**
* rugby_score_store_get_score:
* @scores: a #RugbyScoreStore
*
* Gets the current score.
*
* Returns: the current score
*/
gint gint
rugby_score_store_get_score (RugbyScoreStore *store) rugby_score_store_get_score (RugbyScoreStore *store)
{ {
...@@ -176,13 +154,6 @@ rugby_score_store_get_score (RugbyScoreStore *store) ...@@ -176,13 +154,6 @@ rugby_score_store_get_score (RugbyScoreStore *store)
return store->score; return store->score;
} }
/**
* rugby_score_store_set_score:
* @scores: a #RugbyScoreStore
* @score: the new score
*
* Sets the current score.
*/
void void
rugby_score_store_set_score (RugbyScoreStore *store, rugby_score_store_set_score (RugbyScoreStore *store,
gint score) gint score)
......
...@@ -6,14 +6,6 @@ possibility_free (gpointer possibility) ...@@ -6,14 +6,6 @@ possibility_free (gpointer possibility)
g_slice_free (RugbyPossibility, possibility); g_slice_free (RugbyPossibility, possibility);
} }
/**
* rugby_scoring_get_possibilities:
* @score: the score of a team
*
* Gets the possible ways of scoring @score points.
*
* Returns: (transfer-full): the possibilities
*/
GPtrArray * GPtrArray *
rugby_scoring_get_possibilities (gint score) rugby_scoring_get_possibilities (gint score)
{ {
...@@ -54,29 +46,12 @@ rugby_scoring_get_possibilities (gint score) ...@@ -54,29 +46,12 @@ rugby_scoring_get_possibilities (gint score)
return array; return array;
} }
/**
* rugby_scoring_get_max_tries:
* @score: the score of a team
*
* Gets the maximum number of tries possible for a given score. Not related to
* Max Evans.
*
* Returns: the maximum number of tries possible
*/
gint gint
rugby_scoring_get_max_tries (gint score) rugby_scoring_get_max_tries (gint score)
{ {
return (score % 5 == 1) ? score / UTRY_POINTS - 1 : score / UTRY_POINTS; return (score % 5 == 1) ? score / UTRY_POINTS - 1 : score / UTRY_POINTS;
} }
/**
* rugby_scoring_get_max_kicks:
* @score: the score of a team
*
* Gets the maximum number of kicks (penalties and drop goals) for a given score.
*
* Returns: the maximum number of kicks possible
*/
gint gint
rugby_scoring_get_max_kicks (gint score) rugby_scoring_get_max_kicks (gint score)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment