Remove dead code

This commit is contained in:
Marek Marczykowski-Górecki 2019-07-05 20:35:31 +02:00
parent da3c22b4a6
commit d2c28d12a2
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -35,18 +35,6 @@ systemd_version_changed() {
return 0 return 0
} }
possibly_run_save_script() {
ENCODED_SCRIPT=$(qubesdb-read /qubes-save-script)
if [ -z "$ENCODED_SCRIPT" ] ; then return ; fi
tmpfile=$(mktemp /tmp/qubes-save-script.XXXXXXXXX)
echo "$ENCODED_SCRIPT"|base64 -d >"$tmpfile"
chmod 755 "$tmpfile"
DISPLAY=:0 su - user -c "$tmpfile"
ret=$?
rm -f "$tmpfile"
return $ret
}
have_qubesdb() { have_qubesdb() {
# Tests whether qubesdb-read exists and can be executed. # Tests whether qubesdb-read exists and can be executed.
type qubesdb-read >/dev/null 2>&1 type qubesdb-read >/dev/null 2>&1