Skip to content

Commit

Permalink
Merge pull request beetbox#5103 from Josef-Friedrich/remove-unused-fu…
Browse files Browse the repository at this point in the history
…nctions

Remove unused functions
  • Loading branch information
Serene-Arc authored Mar 1, 2024
2 parents 35e8eb9 + 7abaa2d commit fa8b120
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
14 changes: 0 additions & 14 deletions beets/util/functemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ def __init__(self, values, functions):
# Code generation helpers.


def ex_lvalue(name):
"""A variable load expression."""
return ast.Name(name, ast.Store())


def ex_rvalue(name):
"""A variable store expression."""
return ast.Name(name, ast.Load())
Expand All @@ -75,15 +70,6 @@ def ex_literal(val):
return ast.Constant(val)


def ex_varassign(name, expr):
"""Assign an expression into a single variable. The expression may
either be an `ast.expr` object or a value to be used as a literal.
"""
if not isinstance(expr, ast.expr):
expr = ex_literal(expr)
return ast.Assign([ex_lvalue(name)], expr)


def ex_call(func, args):
"""A function-call expression with only positional parameters. The
function may be an expression or the name of a function. Each
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ Bug fixes:
variant of `awk` installed and required specific settings for `sqlite3`
and caching in `zsh`.
:bug:`3546`
* Remove unused functions :bug:`5103`

For plugin developers:

Expand Down

0 comments on commit fa8b120

Please sign in to comment.