Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Rugby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bruce Cowan
Rugby
Commits
f37b4b81
Commit
f37b4b81
authored
7 years ago
by
Bruce Cowan
Browse files
Options
Downloads
Patches
Plain Diff
Remove pointless docstrings
parent
8d51c35f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/rugby-score-store.c
+0
-29
0 additions, 29 deletions
src/rugby-score-store.c
src/rugby-scoring.c
+0
-25
0 additions, 25 deletions
src/rugby-scoring.c
with
0 additions
and
54 deletions
src/rugby-score-store.c
+
0
−
29
View file @
f37b4b81
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
src/rugby-scoring.c
+
0
−
25
View file @
f37b4b81
...
@@ -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
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment