Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0490f02e authored by Nick Kralevich's avatar Nick Kralevich Committed by Android (Google) Code Review
Browse files

Merge "Remove unused code."

parents ddb622e7 4d254266
Loading
Loading
Loading
Loading
+0 −21
Original line number Original line Diff line number Diff line
@@ -290,27 +290,6 @@ public final class Installer {
        return execute(builder.toString());
        return execute(builder.toString());
    }
    }


    /**
     * Clone all the package data directories from srcUserId to targetUserId. If copyData is true,
     * some of the data is also copied, otherwise just empty directories are created with the
     * correct access rights.
     * @param srcUserId user to copy the data directories from
     * @param targetUserId user to copy the data directories to
     * @param copyData whether the data itself is to be copied. If false, empty directories are
     * created.
     * @return success/error code
     */
    public int cloneUserData(int srcUserId, int targetUserId, boolean copyData) {
        StringBuilder builder = new StringBuilder("cloneuserdata");
        builder.append(' ');
        builder.append(srcUserId);
        builder.append(' ');
        builder.append(targetUserId);
        builder.append(' ');
        builder.append(copyData ? '1' : '0');
        return execute(builder.toString());
    }

    public boolean ping() {
    public boolean ping() {
        if (execute("ping") < 0) {
        if (execute("ping") < 0) {
            return false;
            return false;