diff options
author | Dees_Troy <dees_troy@teamw.in> | 2012-09-11 16:36:04 +0200 |
---|---|---|
committer | Dees_Troy <dees_troy@teamw.in> | 2012-09-11 16:36:04 +0200 |
commit | 19968d07328bd8eaebddf89bcc3434fe14a6628c (patch) | |
tree | d8e222d74046a334bc1caf1de89e3f5bd4f51754 | |
parent | Move device ID code to data manager (diff) | |
download | android_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 |
-rw-r--r-- | extra-functions.c | 32 | ||||
-rw-r--r-- | extra-functions.h | 3 |
2 files changed, 0 insertions, 35 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(); diff --git a/extra-functions.h b/extra-functions.h index f763d170a..d3a43cd99 100644 --- a/extra-functions.h +++ b/extra-functions.h @@ -20,9 +20,6 @@ void wipe_rotate_data(); static long tmplog_offset = 0; -// Battery level -char* print_batt_cap(); - void update_tz_environment_variables(); void fix_perms(); |