recovery: remove koush su since we are using old style

Change-Id: Id70cb7580d6451b6550ce4a5deafe5a53c7b37b3
diff --git a/Android.mk b/Android.mk
index 2e0966f..e932cd4 100644
--- a/Android.mk
+++ b/Android.mk
@@ -177,5 +177,4 @@
 include $(commands_recovery_local_path)/updater/Android.mk
 include $(commands_recovery_local_path)/applypatch/Android.mk
 include $(commands_recovery_local_path)/utilities/Android.mk
-include $(commands_recovery_local_path)/su/Android.mk
 commands_recovery_local_path :=
diff --git a/extendedcommands.c b/extendedcommands.c
index 5b6e52f..74ea649 100644
--- a/extendedcommands.c
+++ b/extendedcommands.c
@@ -1578,9 +1578,7 @@
         }
     }
 
-    int exists = 0;
     if (0 == lstat("/system/bin/su", &st)) {
-        exists = 1;
         if (S_ISREG(st.st_mode)) {
             if ((st.st_mode & (S_ISUID | S_ISGID)) != (S_ISUID | S_ISGID)) {
                 ui_show_text(1);
@@ -1593,7 +1591,6 @@
     }
 
     if (0 == lstat("/system/xbin/su", &st)) {
-        exists = 1;
         if (S_ISREG(st.st_mode)) {
             if ((st.st_mode & (S_ISUID | S_ISGID)) != (S_ISUID | S_ISGID)) {
                 ui_show_text(1);
@@ -1605,16 +1602,6 @@
         }
     }
 
-    if (!exists) {
-        ui_show_text(1);
-        ret = 1;
-        if (confirm_selection("Root access is missing. Root device?", "Yes - Root device (/system/xbin/su)")) {
-            __system("cp /sbin/su.recovery /system/xbin/su");
-            __system("chmod 6755 /system/xbin/su");
-            __system("ln -sf /system/xbin/su /system/bin/su");
-        }
-    }
-
     ensure_path_unmounted("/system");
     return ret;
 }
diff --git a/su/Android.mk b/su/Android.mk
deleted file mode 100644
index 6458e8e..0000000
--- a/su/Android.mk
+++ /dev/null
@@ -1,19 +0,0 @@
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-
-LOCAL_MODULE := su.recovery
-LOCAL_MODULE_TAGS := eng debug
-LOCAL_FORCE_STATIC_EXECUTABLE := true
-LOCAL_STATIC_LIBRARIES := libc
-LOCAL_C_INCLUDES := external/sqlite/dist
-LOCAL_SRC_FILES := ../../../external/koush/Superuser/Superuser/jni/su/su.c ../../../external/koush/Superuser/Superuser/jni/su/activity.c ../../../external/koush/Superuser/Superuser/jni/su/utils.c dbstub.c
-LOCAL_CFLAGS := -DSQLITE_OMIT_LOAD_EXTENSION -DREQUESTOR=\"$(SUPERUSER_PACKAGE)\"
-ifdef SUPERUSER_PACKAGE_PREFIX
-  LOCAL_CFLAGS += -DREQUESTOR_PREFIX=\"$(SUPERUSER_PACKAGE_PREFIX)\"
-endif
-LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
-LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
-include $(BUILD_EXECUTABLE)
-
diff --git a/su/dbstub.c b/su/dbstub.c
deleted file mode 100644
index f06bf1b..0000000
--- a/su/dbstub.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <limits.h>
-#include <sqlite3.h>
-#include <time.h>
-
-#include "../../../external/koush/Superuser/Superuser/jni/su/su.h"
-
-policy_t database_check(struct su_context *ctx) {
-    return ALLOW;
-}