[rkward-cvs] SF.net SVN: rkward:[2872] trunk/rkward/rkward/core

tfry at users.sourceforge.net tfry at users.sourceforge.net
Wed Jun 2 15:49:16 UTC 2010


Revision: 2872
          http://rkward.svn.sourceforge.net/rkward/?rev=2872&view=rev
Author:   tfry
Date:     2010-06-02 15:49:16 +0000 (Wed, 02 Jun 2010)

Log Message:
-----------
Minor cleanup of unused API

Modified Paths:
--------------
    trunk/rkward/rkward/core/rkvariable.cpp
    trunk/rkward/rkward/core/rkvariable.h

Modified: trunk/rkward/rkward/core/rkvariable.cpp
===================================================================
--- trunk/rkward/rkward/core/rkvariable.cpp	2010-06-02 15:45:27 UTC (rev 2871)
+++ trunk/rkward/rkward/core/rkvariable.cpp	2010-06-02 15:49:16 UTC (rev 2872)
@@ -707,11 +707,6 @@
 	return ValueValid;
 }
 
-void RKVariable::removeRow (int row) {
-	RK_TRACE (OBJECTS);
-	removeRows (row, row);
-}
-
 void RKVariable::removeRows (int from_row, int to_row) {
 	RK_TRACE (OBJECTS);
 
@@ -750,11 +745,6 @@
 	downSize ();
 }
 
-void RKVariable::insertRow (int row) {
-	RK_TRACE (OBJECTS);
-	insertRows (row, 1);
-}
-
 void RKVariable::insertRows (int row, int count) {
 	RK_TRACE (OBJECTS);
 	int old_len = getLength ();

Modified: trunk/rkward/rkward/core/rkvariable.h
===================================================================
--- trunk/rkward/rkward/core/rkvariable.h	2010-06-02 15:45:27 UTC (rev 2871)
+++ trunk/rkward/rkward/core/rkvariable.h	2010-06-02 15:49:16 UTC (rev 2872)
@@ -2,7 +2,7 @@
                           rkvariable  -  description
                              -------------------
     begin                : Thu Aug 12 2004
-    copyright            : (C) 2004, 2007 by Thomas Friedrichsmeier
+    copyright            : (C) 2004, 2007, 2010 by Thomas Friedrichsmeier
     email                : tfry at users.sourceforge.net
  ***************************************************************************/
 
@@ -84,13 +84,9 @@
 /** sets the status of the given range of cells to Unknown (the entire row if from_row and to_row are -1). Usually you call this, when you are about to update the given data-range, but haven't fetched the data for that, yet. The unknown-flag is cleared for the cells, as soon as data is written to those cells. The effect is that the cells will not be editable until the data was updated. */
 	void setUnknown (int from_row=-1, int to_row=-1);
 
-/** entirely remove the given row (i.e. the cell). Will also take care of updating the state (are there any invalid cells left?). Does not sync with the backend for technical reasons! You have to remove the row in the backend explicitly. */
-	void removeRow (int row);
-/** see removeRow (), but removes a range of rows (i.e. cells). Since data only needs to be copied once, this is more efficient than several single calls to removeRow (). Does not sync with the backend for technical reasons! You have to remove the row in the backend explicitly. */
+/** entirely remove the given rows (i.e. the cells). Will also take care of updating the state (are there any invalid cells left?). Does not sync with the backend for technical reasons! You have to remove the row in the backend explicitly. */
 	void removeRows (int from_row, int to_row);
-/** inserts a row/cell (with empty value) just above the given index. Does not sync with the backend for technical reasons! You have to insert the row in the backend explicitly. */
-	void insertRow (int row);
-/** like insertRow (), but inserts count rows. Does not sync with the backend for technical reasons! You have to insert the row in the backend explicitly. */
+/** inserts count rows (with empty values) just above the given index. Does not sync with the backend for technical reasons! You have to insert the row in the backend explicitly. */
 	void insertRows (int row, int count);
 /** Tells the object it has (data) length len. Usually this will only be called directly after creating a new object */
 	void setLength (int len);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list