[NAN] Remove builder API using String to translate to byte[] [DO NOT MERGE]

Per API review: String accessor was not needed (duplicate, semantics
not accurate, trivial use-case).

Bug: 31470256
Test: unit tests & integration (sl4a) testing.
Change-Id: I1c33d06887afc88c112d9e095121b9f18af9c06c
This commit is contained in:
Etan Cohen
2016-09-27 12:23:51 -07:00
parent 57db2b3eea
commit c76ccf3e7e
2 changed files with 0 additions and 38 deletions

View File

@@ -256,25 +256,6 @@ public final class PublishConfig implements Parcelable {
return this;
}
/**
* Specify service specific information for the publish session - a simple wrapper
* of {@link PublishConfig.Builder#setServiceSpecificInfo(byte[])}
* obtaining the data from a String.
* <p>
* Optional. Empty by default.
*
* @param serviceSpecificInfoStr The service specific information string
* to be included (as a byte array) in the publish
* information.
*
* @return The builder to facilitate chaining
* {@code builder.setXXX(..).setXXX(..)}.
*/
public Builder setServiceSpecificInfo(@NonNull String serviceSpecificInfoStr) {
mServiceSpecificInfo = serviceSpecificInfoStr.getBytes();
return this;
}
/**
* The match filter for a publish session. Used to determine whether a service
* discovery occurred - in addition to relying on the service name.

View File

@@ -288,25 +288,6 @@ public final class SubscribeConfig implements Parcelable {
return this;
}
/**
* Specify service specific information for the subscribe session - a simple wrapper
* of {@link SubscribeConfig.Builder#setServiceSpecificInfo(byte[])}
* obtaining the data from a String.
* <p>
* Optional. Empty by default.
*
* @param serviceSpecificInfoStr The service specific information string
* to be included (as a byte array) in the subscribe
* information.
*
* @return The builder to facilitate chaining
* {@code builder.setXXX(..).setXXX(..)}.
*/
public Builder setServiceSpecificInfo(@NonNull String serviceSpecificInfoStr) {
mServiceSpecificInfo = serviceSpecificInfoStr.getBytes();
return this;
}
/**
* The match filter for a subscribe session. Used to determine whether a service
* discovery occurred - in addition to relying on the service name.