summaryrefslogtreecommitdiffstats
path: root/scripts
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:44 +0000
commit1f7ce90af6e2e3ae23e11eae85d13f7c93b032cd (patch)
tree28627c96a1ab174db04dbb973fd31f2b472f46ee /scripts
parent9048f52f3a276b8b6c69ca4d08b206e245d2976a (diff)
downloadpoky-1f7ce90af6e2e3ae23e11eae85d13f7c93b032cd.tar.gz
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 <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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):
207 207
208 import atexit 208 import atexit
209 atexit.register(_savelogf) 209 atexit.register(_savelogf)
210
211def enable_logstderr(fpath):
212 global CATCHERR_BUFFILE_FD
213 global CATCHERR_BUFFILE_PATH
214 global CATCHERR_SAVED_2
215
216 if os.path.exists(fpath):
217 os.remove(fpath)
218 CATCHERR_BUFFILE_PATH = fpath
219 CATCHERR_BUFFILE_FD = os.open(CATCHERR_BUFFILE_PATH, os.O_RDWR|os.O_CREAT)
220 CATCHERR_SAVED_2 = os.dup(2)
221 os.dup2(CATCHERR_BUFFILE_FD, 2)
222
223def disable_logstderr():
224 global CATCHERR_BUFFILE_FD
225 global CATCHERR_BUFFILE_PATH
226 global CATCHERR_SAVED_2
227
228 raw(msg=None) # flush message buffer and print it.
229 os.dup2(CATCHERR_SAVED_2, 2)
230 os.close(CATCHERR_SAVED_2)
231 os.close(CATCHERR_BUFFILE_FD)
232 os.unlink(CATCHERR_BUFFILE_PATH)
233 CATCHERR_BUFFILE_FD = -1
234 CATCHERR_BUFFILE_PATH = None
235 CATCHERR_SAVED_2 = -1