Skip to content
Snippets Groups Projects
Commit 9408bdf8 authored by Xavier Claessens's avatar Xavier Claessens Committed by Sjoerd Simons
Browse files

common.sh: remove unused code

Differential Revision: https://phabricator.apertis.org/D533
parent 38f5f68c
No related branches found
No related tags found
No related merge requests found
......@@ -116,42 +116,6 @@ setup_failure() {
#############
# Utilities #
#############
# GSettings wrappers -- if you use these, ensure `libglib-2.0-bin` is installed
set_gsettings_key() {
local schema key value
schema=$1
key=$2
value=$3
${GSETTINGS} set "$schema" "$key" "$value"
}
get_gsettings_key() {
local schema key value
schema=$1
key=$2
${GSETTINGS} get "$schema" "$key"
}
reset_gsettings_key() {
local schema key
schema=$1
key=$2
${GSETTINGS} reset "$schema" "$key"
}
reset_gsettings_schema() {
local schema
schema=$1
${GSETTINGS} reset-recursively "$schema"
}
# Any string results will be returned in single quotes, so you must call the
# function like:
# gsettings_key_is org.freedesktop.foo bar "'qux'"
gsettings_key_is() {
[[ $(get_gsettings_key "$1" "$2") == "$3" ]]
}
create_temp_workdir() {
local tempdir="${WORKDIR}/temp-$RANDOM"
mkdir -vp "${tempdir}" 1>&2
......@@ -361,7 +325,6 @@ WGET="${WGET:-wget -c}"
# We disable apt-get, and just do a pass-through because these tests are
# integrated into LAVA now
#APT_GET="$(type -P true)"
GSETTINGS="${GSETTINGS:-gsettings}"
GDBUS="${GDBUS:-gdbus}"
# 0 = no output
......
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