summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston Sequoia <jeremyhu@apple.com>2014-05-31 17:22:51 -0700
committerJeremy Huddleston Sequoia <jeremyhu@apple.com>2014-05-31 17:50:40 -0700
commit624461797e05da711212329a5c7677df2544fb21 (patch)
treebba2457408502aafd71732049ada0dc4e0dd4c8d
parent77ab9ca61717054b1c8c09594b01f04c3f4681f3 (diff)
XQuartz: Dead code removal (ENABLE_DEBUG_LOG)
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> (cherry picked from commit ad0ff649c68b18c4b95b078c2d1d1e7de71a7c6f)
-rw-r--r--hw/xquartz/darwin.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/hw/xquartz/darwin.c b/hw/xquartz/darwin.c
index e0983d6ef..29c6438a0 100644
--- a/hw/xquartz/darwin.c
+++ b/hw/xquartz/darwin.c
@@ -704,22 +704,6 @@ OsVendorInit(void)
free(lf);
DarwinPrintBanner();
-#ifdef ENABLE_DEBUG_LOG
- {
- char *home_dir = NULL, *log_file_path = NULL;
- home_dir = getenv("HOME");
- if (home_dir) asprintf(&log_file_path, "%s/%s", home_dir,
- DEBUG_LOG_NAME);
- if (log_file_path) {
- if (!access(log_file_path, F_OK)) {
- debug_log_fp = fopen(log_file_path, "a");
- if (debug_log_fp) ErrorF("Debug logging enabled to %s\n",
- log_file_path);
- }
- free(log_file_path);
- }
- }
-#endif
}
}