Skip to content

Commit

Permalink
Remove unused goal._has_actions()
Browse files Browse the repository at this point in the history
Closes: #390
Approved by: <try>
  • Loading branch information
j-mracek authored and rh-atomic-bot committed Nov 30, 2017
1 parent 44c7803 commit aef2afa
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions python/hawkey/goal-py.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,13 +355,6 @@ userinstalled(_GoalObject *self, PyObject *pkg)
Py_RETURN_FALSE;
}

static PyObject *
has_actions(_GoalObject *self, PyObject *action)
{
return PyBool_FromLong(hy_goal_has_actions(
self->goal, static_cast<DnfGoalActions>(PyLong_AsLong(action))));
}

static PyObject *
req_has_distupgrade_all(_GoalObject *self, PyObject *unused)
{
Expand Down Expand Up @@ -676,7 +669,6 @@ static struct PyMethodDef goal_methods[] = {
METH_VARARGS | METH_KEYWORDS, NULL},
{"upgrade_all", (PyCFunction)upgrade_all, METH_NOARGS, NULL},
{"userinstalled", (PyCFunction)userinstalled, METH_O, NULL},
{"_has_actions", (PyCFunction)has_actions, METH_O, NULL},
// deprecated in 0.5.9, will be removed in 1.0.0
// use goal.actions | hawkey.DISTUPGRADE_ALL instead
{"req_has_distupgrade_all", (PyCFunction)req_has_distupgrade_all,
Expand Down

0 comments on commit aef2afa

Please sign in to comment.