Skip to content

Commit

Permalink
config/functions: retire unused functions
Browse files Browse the repository at this point in the history
eglibc ceased active development years ago and is no longer in tree, so no need
to check for it.

tolower() has been around since 2010 and is unused anywhere. Wish it well!

Should it return, tr '[:upper:]' '[:lower:]' is likely better.

Signed-off-by: Ian Leonard <[email protected]>
  • Loading branch information
antonlacon committed Oct 5, 2018
1 parent 9f29687 commit 520391b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions config/functions
Original file line number Diff line number Diff line change
Expand Up @@ -671,17 +671,6 @@ install_addon_files() {
create_addon_xml "$1"
}

tolower() {
echo "$@" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
}

require_eglibc() {
if [ "$TARGET_LIBC" != eglibc ]; then
echo "$1 requires eglibc, aborting."
exit 1
fi
}

add_user() {
# Usage: add_user "username" "password" "userid" "groupid" "description" "home" "shell"
mkdir -p ${INSTALL}/etc
Expand Down

0 comments on commit 520391b

Please sign in to comment.