Revert "hlte: add keydisabler"

This reverts commit 373ef190093455effcd186ed6276d4badf04b910.

Change-Id: Ifac3ed51c940864e37b36e3473e8e031db0e617c
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 09f74e0..250ca6c 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -48,7 +48,6 @@
 
 # CMHW
 BOARD_HARDWARE_CLASS += hardware/samsung/cmhw
-BOARD_HARDWARE_CLASS += device/samsung/hlte-common/cmhw
 
 # Graphics
 TARGET_HAVE_NEW_GRALLOC := true
diff --git a/cmhw/org/cyanogenmod/hardware/KeyDisabler.java b/cmhw/org/cyanogenmod/hardware/KeyDisabler.java
deleted file mode 100644
index 4b1c522..0000000
--- a/cmhw/org/cyanogenmod/hardware/KeyDisabler.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright (C) 2014 The CyanogenMod Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.cyanogenmod.hardware;
-
-import java.io.File;
-
-import org.cyanogenmod.hardware.util.FileUtils;
-
-/*
- * Disable capacitive keys
- *
- * This is intended for use on devices in which the capacitive keys
- * can be fully disabled for replacement with a soft navbar. You
- * really should not be using this on a device with mechanical or
- * otherwise visible-when-inactive keys
- */
-
-public class KeyDisabler {
-
-    private static String KEYDISABLER_PATH = "/sys/class/sec/sec_touchkey/keypad_enable";
-    /*
-     * All HAF classes should export this boolean.
-     * Real implementations must, of course, return true
-     */
-
-    public static boolean isSupported() {
-        File f = new File(KEYDISABLER_PATH);
-        return f.exists();
-    }
-
-    /*
-     * Are the keys currently blocked?
-     */
-
-    public static boolean isActive() {
-        int i;
-        i = Integer.parseInt(FileUtils.readOneLine(KEYDISABLER_PATH));
-
-        return i > 0 ? false : true;
-    }
-
-    /*
-     * Disable capacitive keys
-     */
-
-    public static boolean setActive(boolean state) {
-        return FileUtils.writeLine(KEYDISABLER_PATH, String.valueOf(state ? 0 : 1));
-    }
-
-}
-
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index c72154a..d20a9ba 100644
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -233,9 +233,6 @@
     chmod 0660 /sys/class/leds/torch-sec1/brightness
     chown system camera /sys/class/leds/torch-sec1/brightness
 
-    chown system system /sys/class/sec/sec_touchkey/keypad_enable
-    chmod 0660 /sys/class/sec/sec_touchkey/keypad_enable
-
     # Vibrator
     chmod 0644 /sys/class/timed_output/vibrator/pwm_value
     chown root system /sys/class/timed_output/vibrator/pwm_value