Skip to content

Commit 35121a8

Browse files
committed
remove not used logging functionality
1 parent 7a54e57 commit 35121a8

6 files changed

Lines changed: 0 additions & 27 deletions

File tree

OMPython/Base/om_runner_abc.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from __future__ import annotations
88

99
import abc
10-
import logging
1110
import pathlib
1211
import sys
1312
from typing import Optional, Type
@@ -18,9 +17,6 @@
1817
OMPathABC,
1918
)
2019

21-
# define logger using the current module name as ID
22-
logger = logging.getLogger(__name__)
23-
2420
# due to the compatibility layer to Python < 3.12, the OM(C)Path classes must be hidden behind the following if
2521
# conditions. This is also the reason for OMPathABC, a simple base class to be used in ModelicaSystem* classes.
2622
# Reason: before Python 3.12, pathlib.PurePosixPath can not be derived from; therefore, OMPathABC is not possible

OMPython/Compat_v400/omc_session_zmq.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from __future__ import annotations
77

8-
import logging
98
from typing import Any, Optional
109
import warnings
1110

@@ -20,9 +19,6 @@
2019
OMCSessionLocal,
2120
)
2221

23-
# define logger using the current module name as ID
24-
logger = logging.getLogger(__name__)
25-
2622

2723
class OMCSessionZMQ(OMSessionABC):
2824
"""

OMPython/OMC/omc_path.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@
33
Definition of class OMCPath - path related functions using OMC server via an OMCSession.
44
"""
55

6-
import logging
76
import pathlib
87

98
from OMPython.Base import (
109
OMPathABC,
1110
OMSessionException,
1211
)
1312

14-
# define logger using the current module name as ID
15-
logger = logging.getLogger(__name__)
16-
1713

1814
class OMCPath(OMPathABC):
1915
"""

OMPython/OMCSession.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
Definition of an OMC session.
44
"""
55

6-
from __future__ import annotations
7-
8-
import logging
9-
106
from OMPython.OMC.omc_session import DockerPopen
117
from OMPython.OMC import (
128
OMCSessionDocker,
@@ -16,9 +12,6 @@
1612
OMCSessionWSL,
1713
)
1814

19-
# define logger using the current module name as ID
20-
logger = logging.getLogger(__name__)
21-
2215

2316
DummyPopen = DockerPopen
2417
OMCProcessLocal = OMCSessionLocal

OMPython/Runner/om_path_runner.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
Definition of an OMC session.
44
"""
55

6-
import logging
76
import subprocess
87

98
from OMPython.Base import (
@@ -12,9 +11,6 @@
1211
OMPathRunnerABC,
1312
)
1413

15-
# define logger using the current module name as ID
16-
logger = logging.getLogger(__name__)
17-
1814

1915
class OMPathRunnerLocal(OMPathRunnerABC):
2016
"""

OMPython/Runner/om_session_runner.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from __future__ import annotations
77

8-
import logging
98
import tempfile
109
from typing import Any, Optional, Type
1110

@@ -19,9 +18,6 @@
1918
OMPathRunnerLocal,
2019
)
2120

22-
# define logger using the current module name as ID
23-
logger = logging.getLogger(__name__)
24-
2521

2622
class OMSessionRunner(OMSessionRunnerABC):
2723
"""

0 commit comments

Comments
 (0)