Functions that die aren't exactly well used code.
authorNicholas Clark <nick@ccl4.org>
Sun, 30 Oct 2005 17:08:39 +0000 (17:08 +0000)
committerNicholas Clark <nick@ccl4.org>
Sun, 30 Oct 2005 17:08:39 +0000 (17:08 +0000)
(ck_retarget, oopsCV, pp_padany, pp_threadsv, pp_mapstart)

p4raw-id: //depot/perl@25901

mathoms.c
op.c
pp.c
pp_ctl.c

index 9206525..08b90d8 100644 (file)
--- a/mathoms.c
+++ b/mathoms.c
@@ -748,6 +748,40 @@ Perl_save_hints(pTHX)
     Perl_croak(aTHX_ "internal error: obsolete function save_hints() called");
 }
 
+#if 0
+OP *
+Perl_ck_retarget(pTHX_ OP *o)
+{
+    Perl_croak(aTHX_ "NOT IMPL LINE %d",__LINE__);
+    /* STUB */
+    return o;
+}
+#endif
+
+OP *
+Perl_oopsCV(pTHX_ OP *o)
+{
+    Perl_croak(aTHX_ "NOT IMPL LINE %d",__LINE__);
+    /* STUB */
+    PERL_UNUSED_ARG(o);
+    NORETURN_FUNCTION_END;
+}
+
+PP(pp_padany)
+{
+    DIE(aTHX_ "NOT IMPL LINE %d",__LINE__);
+}
+
+PP(pp_threadsv)
+{
+    DIE(aTHX_ "tried to access per-thread data in non-threaded perl");
+}
+
+PP(pp_mapstart)
+{
+    DIE(aTHX_ "panic: mapstart");      /* uses grepstart */
+}
+
 /*
  * Local variables:
  * c-indentation-style: bsd
diff --git a/op.c b/op.c
index 235b6a1..58c3153 100644 (file)
--- a/op.c
+++ b/op.c
@@ -4919,15 +4919,6 @@ Perl_newHVREF(pTHX_ OP *o)
 }
 
 OP *
-Perl_oopsCV(pTHX_ OP *o)
-{
-    Perl_croak(aTHX_ "NOT IMPL LINE %d",__LINE__);
-    /* STUB */
-    PERL_UNUSED_ARG(o);
-    NORETURN_FUNCTION_END;
-}
-
-OP *
 Perl_newCVREF(pTHX_ I32 flags, OP *o)
 {
     return newUNOP(OP_RV2CV, flags, scalar(o));
@@ -5996,16 +5987,6 @@ Perl_ck_return(pTHX_ OP *o)
     return o;
 }
 
-#if 0
-OP *
-Perl_ck_retarget(pTHX_ OP *o)
-{
-    Perl_croak(aTHX_ "NOT IMPL LINE %d",__LINE__);
-    /* STUB */
-    return o;
-}
-#endif
-
 OP *
 Perl_ck_select(pTHX_ OP *o)
 {
diff --git a/pp.c b/pp.c
index 834d32f..8ae5a07 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -127,11 +127,6 @@ PP(pp_padhv)
     RETURN;
 }
 
-PP(pp_padany)
-{
-    DIE(aTHX_ "NOT IMPL LINE %d",__LINE__);
-}
-
 /* Translations. */
 
 PP(pp_rv2gv)
@@ -4790,11 +4785,6 @@ PP(pp_lock)
     RETURN;
 }
 
-PP(pp_threadsv)
-{
-    DIE(aTHX_ "tried to access per-thread data in non-threaded perl");
-}
-
 /*
  * Local variables:
  * c-indentation-style: bsd
index fd1bccd..e8d89d5 100644 (file)
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -940,11 +940,6 @@ PP(pp_grepstart)
     return ((LOGOP*)PL_op->op_next)->op_other;
 }
 
-PP(pp_mapstart)
-{
-    DIE(aTHX_ "panic: mapstart");      /* uses grepstart */
-}
-
 PP(pp_mapwhile)
 {
     dVAR; dSP;