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

Commit 441ed418 authored by Steve McKay's avatar Steve McKay
Browse files

Remove obsolete debug commands.

Test: Build and...don't use those debug commands :)
Change-Id: Ibfe1d1e9e4f9ee2db8cef77aa6421c4864b1f12a
parent 42d0c223
Loading
Loading
Loading
Loading
+2 −28
Original line number Diff line number Diff line
@@ -48,8 +48,6 @@ public final class CommandInterceptor implements EventHandler<String> {
        mCommands.add(this::quickViewer);
        mCommands.add(this::gestureScale);
        mCommands.add(this::jobProgressDialog);
        mCommands.add(this::archiveCreation);
        mCommands.add(this::docInspector);
        mCommands.add(this::docDetails);
        mCommands.add(this::forcePaging);
    }
@@ -124,32 +122,8 @@ public final class CommandInterceptor implements EventHandler<String> {
        return false;
    }

    private boolean archiveCreation(String[] tokens) {
        if ("zip".equals(tokens[0])) {
            if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) {
                boolean enabled = asBool(tokens[1]);
                mFeatures.forceFeature(R.bool.feature_archive_creation, enabled);
                Log.i(TAG, "Set gesture scale enabled to: " + enabled);
                return true;
            }
            Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens));
        }
        return false;
    }

    private boolean docInspector(String[] tokens) {
        if ("inspect".equals(tokens[0])) {
            if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) {
                boolean enabled = asBool(tokens[1]);
                mFeatures.forceFeature(R.bool.feature_inspector, enabled);
                Log.i(TAG, "Set doc inspector enabled to: " + enabled);
                return true;
            }
            Log.w(TAG, "Invalid command structure: " + TextUtils.join(" ", tokens));
        }
        return false;
    }

    // Include document debug info in Get Info panel.
    // enabled by default on DEBUG builds.
    private boolean docDetails(String[] tokens) {
        if ("docinfo".equals(tokens[0])) {
            if (tokens.length == 2 && !TextUtils.isEmpty(tokens[1])) {