1 |
commit: db3d216676831d8b6c184fb25f94dc54f8710a11 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 7 20:19:26 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 7 20:20:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=db3d2166 |
7 |
|
8 |
GlibEventLoop: remove (unused and unmaintained) |
9 |
|
10 |
pym/portage/util/_eventloop/GlibEventLoop.py | 23 ----------------------- |
11 |
pym/portage/util/_eventloop/global_event_loop.py | 1 - |
12 |
2 files changed, 24 deletions(-) |
13 |
|
14 |
diff --git a/pym/portage/util/_eventloop/GlibEventLoop.py b/pym/portage/util/_eventloop/GlibEventLoop.py |
15 |
deleted file mode 100644 |
16 |
index f2f5c5e64..000000000 |
17 |
--- a/pym/portage/util/_eventloop/GlibEventLoop.py |
18 |
+++ /dev/null |
19 |
@@ -1,23 +0,0 @@ |
20 |
-# Copyright 2012 Gentoo Foundation |
21 |
-# Distributed under the terms of the GNU General Public License v2 |
22 |
- |
23 |
-class GlibEventLoop(object): |
24 |
- |
25 |
- # TODO: Support multiprocessing by using a separate glib.MainContext |
26 |
- # instance for each process. |
27 |
- supports_multiprocessing = False |
28 |
- |
29 |
- def __init__(self): |
30 |
- import gi.repository.GLib as glib |
31 |
- self.IO_ERR = glib.IO_ERR |
32 |
- self.IO_HUP = glib.IO_HUP |
33 |
- self.IO_IN = glib.IO_IN |
34 |
- self.IO_NVAL = glib.IO_NVAL |
35 |
- self.IO_OUT = glib.IO_OUT |
36 |
- self.IO_PRI = glib.IO_PRI |
37 |
- self.iteration = glib.main_context_default().iteration |
38 |
- self.child_watch_add = glib.child_watch_add |
39 |
- self.idle_add = glib.idle_add |
40 |
- self.io_add_watch = glib.io_add_watch |
41 |
- self.timeout_add = glib.timeout_add |
42 |
- self.source_remove = glib.source_remove |
43 |
|
44 |
diff --git a/pym/portage/util/_eventloop/global_event_loop.py b/pym/portage/util/_eventloop/global_event_loop.py |
45 |
index 502dab882..e2c7d71ea 100644 |
46 |
--- a/pym/portage/util/_eventloop/global_event_loop.py |
47 |
+++ b/pym/portage/util/_eventloop/global_event_loop.py |
48 |
@@ -6,7 +6,6 @@ import os |
49 |
from .EventLoop import EventLoop |
50 |
|
51 |
_default_constructor = EventLoop |
52 |
-#from .GlibEventLoop import GlibEventLoop as _default_constructor |
53 |
|
54 |
# If _default_constructor doesn't support multiprocessing, |
55 |
# then _multiprocessing_constructor is used in subprocesses. |