summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-01-31 18:29:40 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-02 17:37:35 +0000
commit835f7a5c4c51f3d0d31d0193258b50596ceacb5a (patch)
tree0aafe08c4ee1d30a6c38a955b72ee234e5de4315 /scripts/lib
parente148884b8145fad212c4085f2ead5c3e5e3e42a2 (diff)
downloadopenembedded-core-835f7a5c4c51f3d0d31d0193258b50596ceacb5a.tar.gz
openembedded-core-835f7a5c4c51f3d0d31d0193258b50596ceacb5a.tar.bz2
openembedded-core-835f7a5c4c51f3d0d31d0193258b50596ceacb5a.zip
wic: msger.py: remove unused APIs
Removed unused enable_logstderr and disable_logstderr APIs. [YOCTO #10619] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/msger.py26
1 files changed, 0 insertions, 26 deletions
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