[前][次][番号順一覧][スレッド一覧]

ruby-changes:42546

From: nobu <ko1@a...>
Date: Sun, 17 Apr 2016 20:40:39 +0900 (JST)
Subject: [ruby-changes:42546] nobu:r54620 (trunk): error.c: remove unused function

nobu	2016-04-17 21:37:15 +0900 (Sun, 17 Apr 2016)

  New Revision: 54620

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54620

  Log:
    error.c: remove unused function
    
    * error.c (rb_compile_bug): remove unused function, which has
      never been exposed.

  Modified files:
    trunk/error.c
    trunk/internal.h
Index: internal.h
===================================================================
--- internal.h	(revision 54619)
+++ internal.h	(revision 54620)
@@ -850,7 +850,6 @@ VALUE rb_nmin_run(VALUE obj, VALUE num, https://github.com/ruby/ruby/blob/trunk/internal.h#L850
 extern VALUE rb_eEAGAIN;
 extern VALUE rb_eEWOULDBLOCK;
 extern VALUE rb_eEINPROGRESS;
-NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4));
 NORETURN(PRINTF_ARGS(void rb_compile_bug_str(VALUE file, int line, const char *fmt, ...), 3, 4));
 PRINTF_ARGS(void rb_compile_error_str(VALUE file, int line, void *enc, const char *fmt, ...), 4, 5);
 VALUE rb_check_backtrace(VALUE);
Index: error.c
===================================================================
--- error.c	(revision 54619)
+++ error.c	(revision 54620)
@@ -442,14 +442,6 @@ rb_async_bug_errno(const char *mesg, int https://github.com/ruby/ruby/blob/trunk/error.c#L442
 }
 
 void
-rb_compile_bug(const char *file, int line, const char *fmt, ...)
-{
-    report_bug(file, line, fmt, NULL);
-
-    abort();
-}
-
-void
 rb_compile_bug_str(VALUE file, int line, const char *fmt, ...)
 {
     report_bug(RSTRING_PTR(file), line, fmt, NULL);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]