changeset 12498:294c0927c762

Deprecate is_duplicate_entry.
author Rik <octave@nomad.inbox5.com>
date Thu, 03 Mar 2011 09:46:00 -0800
parents 1536ed546219
children a3019189ac51
files ChangeLog NEWS doc/ChangeLog doc/interpreter/matrix.txi scripts/ChangeLog scripts/deprecated/is_duplicate_entry.m scripts/deprecated/module.mk scripts/general/is_duplicate_entry.m scripts/general/module.mk
diffstat 8 files changed, 29 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-03-03  Rik  <octave@nomad.inbox5.com>
+
+	* NEWS: Deprecate is_duplicate_entry.
+
 2011-03-01  Ben Abbott  <bpabbott@mac.com>
 
 	* README.MacOS: Add Fink packages needed to support print output.
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@
  ** The PCRE library is now required to build Octave.
 
  ** New functions added.
+
     iscolumn
     issrow
  
@@ -24,6 +25,13 @@
       spchol              splchol      unmark_command
       spchol2inv          split        unmark_rawcommand
 
+    The following functions have been deprecated in Octave 3.6 and will
+    be removed from Octave 3.10 (or whatever version is the second major
+    release after 3.6):
+
+      is_duplicate_entry
+      
+
 Summary of important user-visible changes for version 3.4:
 ---------------------------------------------------------
 
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-03  Rik  <octave@nomad.inbox5.com>
+
+	* interpreter/matrix.txi: Deprecate is_duplicate_entry.
+
 2010-03-02  Rik  <octave@nomad.inbox5.com>
 
 	* interpreter/stats.txi: Correctly refer to discrete uniform 
--- a/doc/interpreter/matrix.txi
+++ b/doc/interpreter/matrix.txi
@@ -67,8 +67,6 @@
 
 @DOCSTRING(xor)
 
-@DOCSTRING(is_duplicate_entry)
-
 @DOCSTRING(diff)
 
 @DOCSTRING(isinf)
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-03  Rik  <octave@nomad.inbox5.com>
+
+	* deprecated/module.mk, general/module.mk: Deprecate is_duplicate_entry.
+
 2010-03-03  Rik  <octave@nomad.inbox5.com>
 
 	* miscellaneous/movefile.m: Fix copy&paste bug affecting Windows
rename from scripts/general/is_duplicate_entry.m
rename 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);
--- a/scripts/deprecated/module.mk
+++ b/scripts/deprecated/module.mk
@@ -11,6 +11,7 @@
   deprecated/gammai.m \
   deprecated/glpkmex.m \
   deprecated/intwarning.m \
+  deprecated/is_duplicate_entry.m \
   deprecated/is_global.m \
   deprecated/isstr.m \
   deprecated/krylovb.m \
--- a/scripts/general/module.mk
+++ b/scripts/general/module.mk
@@ -42,7 +42,6 @@
   general/interp3.m \
   general/interpn.m \
   general/interpft.m \
-  general/is_duplicate_entry.m \
   general/isa.m \
   general/iscolumn.m \
   general/isdir.m \