]> source.dussan.org Git - jackcess.git/commitdiff
remove unnecessary methods
authorJames Ahlborn <jtahlborn@yahoo.com>
Thu, 7 Nov 2013 00:00:21 +0000 (00:00 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Thu, 7 Nov 2013 00:00:21 +0000 (00:00 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@834 f203690c-595d-4dc9-a70b-905162fa7fd2

src/main/java/com/healthmarketscience/jackcess/impl/IndexImpl.java
src/test/java/com/healthmarketscience/jackcess/IndexTest.java

index 083fd5a294a269d38cad24fe73793a46e0875e04..0f3bb7263ab24d1304948cc91027b627f89605f0 100644 (file)
@@ -240,43 +240,6 @@ public class IndexImpl implements Index, Comparable<IndexImpl>
   public void initialize() throws IOException {
     getIndexData().initialize();
   }
-
-  /**
-   * Writes the current index state to the database.
-   * <p>
-   * Forces index initialization.
-   */
-  public void update() throws IOException {
-    getIndexData().update();
-  }
-
-  /**
-   * Adds a row to this index
-   * <p>
-   * Forces index initialization.
-   * 
-   * @param row Row to add
-   * @param rowId rowId of the row to be added
-   */
-  public void addRow(Object[] row, RowIdImpl rowId)
-    throws IOException
-  {
-    getIndexData().addRow(row, rowId);
-  }
-  
-  /**
-   * Removes a row from this index
-   * <p>
-   * Forces index initialization.
-   * 
-   * @param row Row to remove
-   * @param rowId rowId of the row to be removed
-   */
-  public void deleteRow(Object[] row, RowIdImpl rowId)
-    throws IOException
-  {
-    getIndexData().deleteRow(row, rowId);
-  }
       
   /**
    * Gets a new cursor for this index.
index 777750ebac645857b556d965420efe62cff91499..883f0a75aab00d226a8b09ddfc78a842741ac705 100644 (file)
@@ -332,7 +332,7 @@ public class IndexTest extends TestCase {
 
       IOException failure = null;
       try {
-        ((IndexImpl)index).addRow(row, new RowIdImpl(400 + i, 0));
+        ((IndexImpl)index).getIndexData().addRow(row, new RowIdImpl(400 + i, 0));
       } catch(IOException e) {
         failure = e;
       }