diff options
| author | Elliott Hughes <enh@google.com> | 2011-02-18 10:49:24 -0800 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2011-02-18 10:49:24 -0800 |
| commit | a765e0dd7391649b5550d1723877e00d79eade7a (patch) | |
| tree | e44dd605d538f253deca95a1cc2b37a150d527c8 | |
| parent | d8dc6b738a5b531e4ed39e696754bfecb2533c62 (diff) | |
| download | android_dalvik-a765e0dd7391649b5550d1723877e00d79eade7a.tar.gz android_dalvik-a765e0dd7391649b5550d1723877e00d79eade7a.tar.bz2 android_dalvik-a765e0dd7391649b5550d1723877e00d79eade7a.zip | |
Remove system properties that are now handled in libcore.
Change-Id: Ifc954f422fd73e7bd8ebbcc69f890d041acbc2e2
| -rw-r--r-- | vm/Properties.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/vm/Properties.c b/vm/Properties.c index 2290c4642..657fc11e8 100644 --- a/vm/Properties.c +++ b/vm/Properties.c @@ -20,9 +20,6 @@ #include <cutils/array.h> #include <stdlib.h> -#include <sys/utsname.h> -#include <limits.h> -#include <unistd.h> bool dvmPropertiesStartup(void) { @@ -30,25 +27,6 @@ bool dvmPropertiesStartup(void) if (gDvm.properties == NULL) { return false; } - - /* - * TODO: these are currently awkward to do in Java so we sneak them in - * here. - */ - struct utsname info; - uname(&info); - char* s; - asprintf(&s, "os.arch=%s", info.machine); - arrayAdd(gDvm.properties, s); - asprintf(&s, "os.name=%s", info.sysname); - arrayAdd(gDvm.properties, s); - asprintf(&s, "os.version=%s", info.release); - arrayAdd(gDvm.properties, s); - - char path[PATH_MAX]; - asprintf(&s, "user.dir=%s", getcwd(path, sizeof(path))); - arrayAdd(gDvm.properties, s); - return true; } |
