summaryrefslogtreecommitdiffstats
path: root/extra-functions.c
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-11 16:36:04 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-11 16:36:04 +0200
commit19968d07328bd8eaebddf89bcc3434fe14a6628c (patch)
treed8e222d74046a334bc1caf1de89e3f5bd4f51754 /extra-functions.c
parentMove device ID code to data manager (diff)
downloadandroid_bootable_recovery-19968d07328bd8eaebddf89bcc3434fe14a6628c.tar
android_bootable_recovery-19968d07328bd8eaebddf89bcc3434fe14a6628c.tar.gz
android_bootable_recovery-19968d07328bd8eaebddf89bcc3434fe14a6628c.tar.bz2
android_bootable_recovery-19968d07328bd8eaebddf89bcc3434fe14a6628c.tar.lz
android_bootable_recovery-19968d07328bd8eaebddf89bcc3434fe14a6628c.tar.xz
android_bootable_recovery-19968d07328bd8eaebddf89bcc3434fe14a6628c.tar.zst
android_bootable_recovery-19968d07328bd8eaebddf89bcc3434fe14a6628c.zip
Diffstat (limited to 'extra-functions.c')
-rw-r--r--extra-functions.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/extra-functions.c b/extra-functions.c
index 8a2e9ce9c..9157e2397 100644
--- a/extra-functions.c
+++ b/extra-functions.c
@@ -303,14 +303,6 @@ int check_md5(char* path) {
return o;
}
-static void set_sdcard_update_bootloader_message() {
- struct bootloader_message boot;
- memset(&boot, 0, sizeof(boot));
- strlcpy(boot.command, "boot-recovery", sizeof(boot.command));
- strlcpy(boot.recovery, "recovery\n", sizeof(boot.recovery));
- set_bootloader_message(&boot);
-}
-
int TWtry_update_binary(const char *path, ZipArchive *zip, int* wipe_cache) {
const ZipEntry* binary_entry =
mzFindZipEntry(zip, ASSUMED_UPDATE_BINARY_NAME);
@@ -924,30 +916,6 @@ int get_battery_level(void)
return lastVal;
}
-char*
-print_batt_cap() {
- char* full_cap_s = (char*)malloc(30);
- char full_cap_a[30];
-
- int cap_i = get_battery_level();
-
- //int len = strlen(cap_s);
- //if (cap_s[len-1] == '\n') {
- // cap_s[len-1] = 0;
- //}
-
- // Get a usable time
- struct tm *current;
- time_t now;
- now = time(0);
- current = localtime(&now);
-
- sprintf(full_cap_a, "Battery Level: %i%% @ %02D:%02D", cap_i, current->tm_hour, current->tm_min);
- strcpy(full_cap_s, full_cap_a);
-
- return full_cap_s;
-}
-
void update_tz_environment_variables() {
setenv("TZ", DataManager_GetStrValue(TW_TIME_ZONE_VAR), 1);
tzset();