summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/mlte
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-12 10:31:54 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-12 10:31:54 (GMT)
commit6c7e326eaaa2d814e0d299054f78e5bd187489ab (patch)
tree5343213d9e164e76a47517111dd41b46f7fd4877 /Mac/Modules/mlte
parent6bf45c67523a8e81963ce645979ac85f4f75ef33 (diff)
downloadcpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.zip
cpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.tar.gz
cpython-6c7e326eaaa2d814e0d299054f78e5bd187489ab.tar.bz2
Getting rid of pre-Carbon (MacOS8) support. All code depending on
TARGET_API_MAC_OS8 (or !TARGET_API_MAC_CARBON) is gone. Also some TARGET_API_MAC_OSX conditional code is gone, because it is no longer used on OSX-only Python (only in MacPython-OS9).
Diffstat (limited to 'Mac/Modules/mlte')
-rw-r--r--Mac/Modules/mlte/_Mltemodule.c26
-rw-r--r--Mac/Modules/mlte/mltescan.py2
2 files changed, 1 insertions, 27 deletions
diff --git a/Mac/Modules/mlte/_Mltemodule.c b/Mac/Modules/mlte/_Mltemodule.c
index 83bbbf8..f481f52 100644
--- a/Mac/Modules/mlte/_Mltemodule.c
+++ b/Mac/Modules/mlte/_Mltemodule.c
@@ -245,27 +245,6 @@ static PyObject *TXNObj_TXNClick(TXNObjectObject *_self, PyObject *_args)
return _res;
}
-#if TARGET_API_MAC_OS8
-
-static PyObject *TXNObj_TXNTSMCheck(TXNObjectObject *_self, PyObject *_args)
-{
- PyObject *_res = NULL;
- Boolean _rv;
- EventRecord ioEvent;
-#ifndef TXNTSMCheck
- PyMac_PRECHECK(TXNTSMCheck);
-#endif
- if (!PyArg_ParseTuple(_args, ""))
- return NULL;
- _rv = TXNTSMCheck(_self->ob_itself,
- &ioEvent);
- _res = Py_BuildValue("bO&",
- _rv,
- PyMac_BuildEventRecord, &ioEvent);
- return _res;
-}
-#endif
-
static PyObject *TXNObj_TXNSelectAll(TXNObjectObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
@@ -1193,11 +1172,6 @@ static PyMethodDef TXNObj_methods[] = {
PyDoc_STR("(RgnHandle ioCursorRgn) -> None")},
{"TXNClick", (PyCFunction)TXNObj_TXNClick, 1,
PyDoc_STR("(EventRecord iEvent) -> None")},
-
-#if TARGET_API_MAC_OS8
- {"TXNTSMCheck", (PyCFunction)TXNObj_TXNTSMCheck, 1,
- PyDoc_STR("() -> (Boolean _rv, EventRecord ioEvent)")},
-#endif
{"TXNSelectAll", (PyCFunction)TXNObj_TXNSelectAll, 1,
PyDoc_STR("() -> None")},
{"TXNFocus", (PyCFunction)TXNObj_TXNFocus, 1,
diff --git a/Mac/Modules/mlte/mltescan.py b/Mac/Modules/mlte/mltescan.py
index f6c93e2..9bd1dfc 100644
--- a/Mac/Modules/mlte/mltescan.py
+++ b/Mac/Modules/mlte/mltescan.py
@@ -78,12 +78,12 @@ kTXNFontSizeAttributeSize = 4
"kTXNFontSizeAttributeSize",
"status",
"justification",
+ 'TXNTSMCheck', # OS8
]
def makegreylist(self):
return [
('#if TARGET_API_MAC_OS8', [
- 'TXNTSMCheck',
])]