diff scripts/deprecated/is_duplicate_entry.m @ 12498:294c0927c762

Deprecate is_duplicate_entry.
author Rik <octave@nomad.inbox5.com>
date Thu, 03 Mar 2011 09:46:00 -0800
parents scripts/general/is_duplicate_entry.m@fd0a3ac60b0e
children 72c96de7a403
line wrap: on
line diff
copy from scripts/general/is_duplicate_entry.m
copy to scripts/deprecated/is_duplicate_entry.m
--- a/scripts/general/is_duplicate_entry.m
+++ b/scripts/deprecated/is_duplicate_entry.m
@@ -27,6 +27,14 @@
 
 function retval = is_duplicate_entry (x)
 
+  persistent warned = false;
+  if (! warned)
+    warned = true;
+    warning ("Octave:deprecated-function",
+             "is_duplicate_entry is obsolete and will be removed from a future version of Octave; see the function unique for equivalent functionality");
+  endif
+
+
   if (nargin == 1)
     if (ismatrix (x))
       lx = numel (x);