summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/te
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/te
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/te')
-rw-r--r--Mac/Modules/te/_TEmodule.c12
-rw-r--r--Mac/Modules/te/tescan.py7
2 files changed, 0 insertions, 19 deletions
diff --git a/Mac/Modules/te/_TEmodule.c b/Mac/Modules/te/_TEmodule.c
index 03031d2..990efa2 100644
--- a/Mac/Modules/te/_TEmodule.c
+++ b/Mac/Modules/te/_TEmodule.c
@@ -1197,8 +1197,6 @@ static PyObject *TE_TEToScrap(PyObject *_self, PyObject *_args)
return _res;
}
-#if TARGET_API_MAC_CARBON
-
static PyObject *TE_TEGetScrapHandle(PyObject *_self, PyObject *_args)
{
PyObject *_res = NULL;
@@ -1213,9 +1211,6 @@ static PyObject *TE_TEGetScrapHandle(PyObject *_self, PyObject *_args)
ResObj_New, _rv);
return _res;
}
-#endif
-
-#if TARGET_API_MAC_CARBON
static PyObject *TE_TESetScrapHandle(PyObject *_self, PyObject *_args)
{
@@ -1232,7 +1227,6 @@ static PyObject *TE_TESetScrapHandle(PyObject *_self, PyObject *_args)
_res = Py_None;
return _res;
}
-#endif
static PyObject *TE_LMGetWordRedraw(PyObject *_self, PyObject *_args)
{
@@ -1299,16 +1293,10 @@ static PyMethodDef TE_methods[] = {
PyDoc_STR("() -> None")},
{"TEToScrap", (PyCFunction)TE_TEToScrap, 1,
PyDoc_STR("() -> None")},
-
-#if TARGET_API_MAC_CARBON
{"TEGetScrapHandle", (PyCFunction)TE_TEGetScrapHandle, 1,
PyDoc_STR("() -> (Handle _rv)")},
-#endif
-
-#if TARGET_API_MAC_CARBON
{"TESetScrapHandle", (PyCFunction)TE_TESetScrapHandle, 1,
PyDoc_STR("(Handle value) -> None")},
-#endif
{"LMGetWordRedraw", (PyCFunction)TE_LMGetWordRedraw, 1,
PyDoc_STR("() -> (UInt8 _rv)")},
{"LMSetWordRedraw", (PyCFunction)TE_LMSetWordRedraw, 1,
diff --git a/Mac/Modules/te/tescan.py b/Mac/Modules/te/tescan.py
index ed37dbb..c81a8bf 100644
--- a/Mac/Modules/te/tescan.py
+++ b/Mac/Modules/te/tescan.py
@@ -43,13 +43,6 @@ class MyScanner(Scanner):
## "TEGetHiliteRgn",
]
- def makegreylist(self):
- return [
- ('#if TARGET_API_MAC_CARBON', [
- 'TEGetScrapHandle',
- 'TESetScrapHandle',
- ])]
-
def makeblacklisttypes(self):
return [
"TEClickLoopUPP",