diff src/pt-mat.cc @ 13841:0a158dbdb04a

Remove 3 unused warning ids Removed ids: empty-list-elements, fortran-indexing, complex-cmp-ops. Renamed ids: string-concat -> mixed-string-concat
author Rik <octave@nomad.inbox5.com>
date Tue, 08 Nov 2011 09:07:13 -0800
parents e652ff4d1522
children 79aa00a94e9e
line wrap: on
line diff
--- a/src/pt-mat.cc
+++ b/src/pt-mat.cc
@@ -117,7 +117,6 @@
 
     tm_row_const_rep& operator = (const tm_row_const_rep&);
 
-    void eval_warning (const char *msg, int l, int c) const;
   };
 
 public:
@@ -460,17 +459,6 @@
     }
 }
 
-void
-tm_row_const::tm_row_const_rep::eval_warning (const char *msg, int l,
-                                              int c) const
-{
-  if (l == -1 && c == -1)
-    warning_with_id ("Octave:empty-list-elements", "%s", msg);
-  else
-    warning_with_id ("Octave:empty-list-elements",
-                     "%s near line %d, column %d", msg, l, c);
-}
-
 class
 tm_const : public octave_base_list<tm_row_const>
 {
@@ -726,7 +714,7 @@
 maybe_warn_string_concat (bool all_dq_strings_p, bool all_sq_strings_p)
 {
   if (! (all_dq_strings_p || all_sq_strings_p))
-    warning_with_id ("Octave:string-concat",
+    warning_with_id ("Octave:mixed-string-concat",
                      "concatenation of different character string types may have unintended consequences");
 }