Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
Remove networktables2.type Java custom container types. (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJohnson authored Aug 5, 2017
1 parent d910b0b commit 4b8ef57
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 108 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package edu.wpi.first.wpilibj.networktables;

import edu.wpi.first.wpilibj.tables.*;
import edu.wpi.first.wpilibj.networktables2.type.*;
import java.io.*;
import java.nio.ByteBuffer;
import java.util.*;
Expand Down Expand Up @@ -797,12 +796,6 @@ else if (value instanceof Number[])
return NetworkTablesJNI.putDoubleArray(pathWithSep + key, toNative((Number[])value));
else if (value instanceof String[])
return NetworkTablesJNI.putStringArray(pathWithSep + key, (String[])value);
else if (value instanceof BooleanArray)
return NetworkTablesJNI.putBooleanArray(pathWithSep + key, toNative((Boolean[])((ArrayData)value).getDataArray()));
else if (value instanceof NumberArray)
return NetworkTablesJNI.putDoubleArray(pathWithSep + key, toNative((Double[])((ArrayData)value).getDataArray()));
else if (value instanceof StringArray)
return NetworkTablesJNI.putStringArray(pathWithSep + key, (String[])((ArrayData)value).getDataArray());
else
throw new IllegalArgumentException("Value of type " + value.getClass().getName() + " cannot be put into a table");
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 4b8ef57

Please sign in to comment.