@@ -242,7 +242,6 @@ static PyObject * PyJPChar_new(PyTypeObject *type, PyObject *pyargs, PyObject *
242242static PyObject *PyJPChar_str (PyJPChar *self)
243243{
244244 JP_PY_TRY (" PyJPChar_str" );
245- // PyJPModule_getContext(); // Check that JVM is running
246245 JPValue *javaSlot = PyJPValue_getJavaSlot ((PyObject*) self);
247246 if (javaSlot == nullptr )
248247 { // GCOVR_EXCL_START
@@ -259,7 +258,6 @@ static PyObject *PyJPChar_str(PyJPChar *self)
259258static PyObject *PyJPChar_repr (PyJPChar *self)
260259{
261260 JP_PY_TRY (" PyJPChar_repr" );
262- // //PyJPModule_getContext(); // Check that JVM is running
263261 JPValue *javaSlot = PyJPValue_getJavaSlot ((PyObject*) self);
264262 if (javaSlot == nullptr )
265263 { // GCOVR_EXCL_START
@@ -276,7 +274,6 @@ static PyObject *PyJPChar_repr(PyJPChar *self)
276274static PyObject *PyJPChar_index (PyJPChar *self)
277275{
278276 JP_PY_TRY (" PyJPChar_index" );
279- // PyJPModule_getContext(); // Check that JVM is running
280277 JPValue *javaSlot = PyJPValue_getJavaSlot ((PyObject*) self);
281278 if (assertNotNull (javaSlot))
282279 return nullptr ;
@@ -287,7 +284,6 @@ static PyObject *PyJPChar_index(PyJPChar *self)
287284static PyObject *PyJPChar_float (PyJPChar *self)
288285{
289286 JP_PY_TRY (" PyJPChar_float" );
290- // PyJPModule_getContext(); // Check that JVM is running
291287 JPValue *javaSlot = PyJPValue_getJavaSlot ((PyObject*) self);
292288 if (assertNotNull (javaSlot))
293289 return nullptr ;
@@ -298,7 +294,6 @@ static PyObject *PyJPChar_float(PyJPChar *self)
298294static PyObject *PyJPChar_abs (PyJPChar *self)
299295{
300296 JP_PY_TRY (" PyJPChar_nop" );
301- // PyJPModule_getContext(); // Check that JVM is running
302297 JPValue *javaSlot = PyJPValue_getJavaSlot ((PyObject*) self);
303298 if (assertNotNull (javaSlot))
304299 return nullptr ;
@@ -312,7 +307,6 @@ static PyObject *PyJPChar_abs(PyJPChar *self)
312307static Py_ssize_t PyJPChar_len (PyJPChar *self)
313308{
314309 JP_PY_TRY (" PyJPChar_nop" );
315- // PyJPModule_getContext(); // Check that JVM is running
316310 JPValue *javaSlot = PyJPValue_getJavaSlot ((PyObject*) self);
317311 if (assertNotNull (javaSlot))
318312 return -1 ;
@@ -357,31 +351,27 @@ static PyObject *apply(PyObject *first, PyObject *second, PyObject* (*func)(PyOb
357351static PyObject *PyJPChar_and (PyObject *first, PyObject *second)
358352{
359353 JP_PY_TRY (" PyJPChar_and" );
360- // PyJPModule_getContext(); // Check that JVM is running
361354 return apply (first, second, PyNumber_And);
362355 JP_PY_CATCH (nullptr ); // GCOVR_EXCL_LINE
363356}
364357
365358static PyObject *PyJPChar_or (PyObject *first, PyObject *second)
366359{
367360 JP_PY_TRY (" PyJPChar_or" );
368- // PyJPModule_getContext(); // Check that JVM is running
369361 return apply (first, second, PyNumber_Or);
370362 JP_PY_CATCH (nullptr ); // GCOVR_EXCL_LINE
371363}
372364
373365static PyObject *PyJPChar_xor (PyObject *first, PyObject *second)
374366{
375367 JP_PY_TRY (" PyJPChar_xor" );
376- // PyJPModule_getContext(); // Check that JVM is running
377368 return apply (first, second, PyNumber_Xor);
378369 JP_PY_CATCH (nullptr ); // GCOVR_EXCL_LINE
379370}
380371
381372static PyObject *PyJPChar_add (PyObject *first, PyObject *second)
382373{
383374 JP_PY_TRY (" PyJPChar_add" );
384- // PyJPModule_getContext(); // Check that JVM is running
385375 JPValue *slot0 = PyJPValue_getJavaSlot (first);
386376 JPValue *slot1 = PyJPValue_getJavaSlot (second);
387377 if (slot1 != nullptr && slot0 != nullptr )
@@ -424,55 +414,48 @@ static PyObject *PyJPChar_add(PyObject *first, PyObject *second)
424414static PyObject *PyJPChar_subtract (PyObject *first, PyObject *second)
425415{
426416 JP_PY_TRY (" PyJPChar_subtract" );
427- // PyJPModule_getContext(); // Check that JVM is running
428417 return apply (first, second, PyNumber_Subtract);
429418 JP_PY_CATCH (nullptr ); // GCOVR_EXCL_LINE
430419}
431420
432421static PyObject *PyJPChar_mult (PyObject *first, PyObject *second)
433422{
434423 JP_PY_TRY (" PyJPChar_mult" );
435- // PyJPModule_getContext(); // Check that JVM is running
436424 return apply (first, second, PyNumber_Multiply);
437425 JP_PY_CATCH (nullptr ); // GCOVR_EXCL_LINE
438426}
439427
440428static PyObject *PyJPChar_rshift (PyObject *first, PyObject *second)
441429{
442430 JP_PY_TRY (" PyJPChar_rshift" );
443- // PyJPModule_getContext(); // Check that JVM is running
444431 return apply (first, second, PyNumber_Rshift);
445432 JP_PY_CATCH (nullptr ); // GCOVR_EXCL_LINE
446433}
447434
448435static PyObject *PyJPChar_lshift (PyObject *first, PyObject *second)
449436{
450437 JP_PY_TRY (" PyJPChar_lshift" );
451- // PyJPModule_getContext(); // Check that JVM is running
452438 return apply (first, second, PyNumber_Lshift);
453439 JP_PY_CATCH (nullptr ); // GCOVR_EXCL_LINE
454440}
455441
456442static PyObject *PyJPChar_floordiv (PyObject *first, PyObject *second)
457443{
458444 JP_PY_TRY (" PyJPChar_floordiv" );
459- // PyJPModule_getContext(); // Check that JVM is running
460445 return apply (first, second, PyNumber_FloorDivide);
461446 JP_PY_CATCH (nullptr ); // GCOVR_EXCL_LINE
462447}
463448
464449static PyObject *PyJPChar_divmod (PyObject *first, PyObject *second)
465450{
466451 JP_PY_TRY (" PyJPChar_divmod" );
467- // PyJPModule_getContext(); // Check that JVM is running
468452 return apply (first, second, PyNumber_Divmod);
469453 JP_PY_CATCH (nullptr ); // GCOVR_EXCL_LINE
470454}
471455
472456static PyObject *PyJPChar_neg (PyJPChar *self)
473457{
474458 JP_PY_TRY (" PyJPChar_neg" );
475- // PyJPModule_getContext(); // Check that JVM is running
476459 JPValue *javaSlot = PyJPValue_getJavaSlot ((PyObject*) self);
477460 if (assertNotNull (javaSlot))
478461 return nullptr ;
@@ -485,7 +468,6 @@ static PyObject *PyJPChar_neg(PyJPChar *self)
485468static PyObject *PyJPChar_pos (PyJPChar *self)
486469{
487470 JP_PY_TRY (" PyJPChar_pos" );
488- // PyJPModule_getContext(); // Check that JVM is running
489471 JPValue *javaSlot = PyJPValue_getJavaSlot ((PyObject*) self);
490472 if (assertNotNull (javaSlot))
491473 return nullptr ;
@@ -498,7 +480,6 @@ static PyObject *PyJPChar_pos(PyJPChar *self)
498480static PyObject *PyJPChar_inv (PyJPChar *self)
499481{
500482 JP_PY_TRY (" PyJPObject_neg" );
501- // PyJPModule_getContext(); // Check that JVM is running
502483 JPValue *javaSlot = PyJPValue_getJavaSlot ((PyObject*) self);
503484 if (assertNotNull (javaSlot))
504485 return nullptr ;
@@ -511,7 +492,6 @@ static PyObject *PyJPChar_inv(PyJPChar *self)
511492static PyObject *PyJPJChar_compare (PyObject *self, PyObject *other, int op)
512493{
513494 JP_PY_TRY (" PyJPJChar_compare" );
514- // PyJPModule_getContext(); // Check that JVM is running
515495 JPValue *javaSlot1 = PyJPValue_getJavaSlot (other);
516496 JPValue *javaSlot0 = PyJPValue_getJavaSlot (self);
517497 if (isNull (javaSlot0))
@@ -576,7 +556,6 @@ static PyObject *PyJPJChar_compare(PyObject *self, PyObject *other, int op)
576556static Py_hash_t PyJPChar_hash (PyObject *self)
577557{
578558 JP_PY_TRY (" PyJPObject_hash" );
579- // PyJPModule_getContext(); // Check that JVM is running
580559 JPValue *javaSlot = PyJPValue_getJavaSlot (self);
581560 if (isNull (javaSlot))
582561 return Py_TYPE (Py_None)->tp_hash (Py_None);
@@ -587,7 +566,6 @@ static Py_hash_t PyJPChar_hash(PyObject *self)
587566static int PyJPChar_bool (PyJPChar *self)
588567{
589568 JP_PY_TRY (" PyJPObject_bool" );
590- // PyJPModule_getContext(); // Check that JVM is running
591569 JPValue *javaSlot = PyJPValue_getJavaSlot ((PyObject*) self);
592570 if (isNull (javaSlot))
593571 return 0 ;
@@ -597,12 +575,10 @@ static int PyJPChar_bool(PyJPChar *self)
597575
598576
599577static PyMethodDef charMethods[] = {
600- // {"thing", (PyCFunction) PyJPMethod_matchReport, METH_VARARGS, ""},
601578 {nullptr },
602579};
603580
604581struct PyGetSetDef charGetSet[] = {
605- // {"thing", (getter) PyJPMethod_getSelf, NULL, NULL, NULL},
606582 {nullptr },
607583};
608584
0 commit comments