From 1f7ce90af6e2e3ae23e11eae85d13f7c93b032cd Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 31 Jan 2017 18:29:40 +0200 Subject: wic: msger.py: remove unused APIs Removed unused enable_logstderr and disable_logstderr APIs. [YOCTO #10619] (From OE-Core rev: 835f7a5c4c51f3d0d31d0193258b50596ceacb5a) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- scripts/lib/wic/msger.py | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'scripts/lib/wic/msger.py') diff --git a/scripts/lib/wic/msger.py b/scripts/lib/wic/msger.py index fb8336d94a..dc9b73427d 100644 --- a/scripts/lib/wic/msger.py +++ b/scripts/lib/wic/msger.py @@ -207,29 +207,3 @@ def set_logfile(fpath): import atexit atexit.register(_savelogf) - -def enable_logstderr(fpath): - global CATCHERR_BUFFILE_FD - global CATCHERR_BUFFILE_PATH - global CATCHERR_SAVED_2 - - if os.path.exists(fpath): - os.remove(fpath) - CATCHERR_BUFFILE_PATH = fpath - CATCHERR_BUFFILE_FD = os.open(CATCHERR_BUFFILE_PATH, os.O_RDWR|os.O_CREAT) - CATCHERR_SAVED_2 = os.dup(2) - os.dup2(CATCHERR_BUFFILE_FD, 2) - -def disable_logstderr(): - global CATCHERR_BUFFILE_FD - global CATCHERR_BUFFILE_PATH - global CATCHERR_SAVED_2 - - raw(msg=None) # flush message buffer and print it. - os.dup2(CATCHERR_SAVED_2, 2) - os.close(CATCHERR_SAVED_2) - os.close(CATCHERR_BUFFILE_FD) - os.unlink(CATCHERR_BUFFILE_PATH) - CATCHERR_BUFFILE_FD = -1 - CATCHERR_BUFFILE_PATH = None - CATCHERR_SAVED_2 = -1 -- cgit v1.2.3-54-g00ecf