Remove unnecessary code and APIs.

This stuff has been replaced by setNetworkForUser() in NetdClient.

Change-Id: If525ee259b74314191d1913f7c2a3e828e05c38f
This commit is contained in:
Sreeram Ramachandran 2014-07-11 17:38:09 -07:00
commit b5ae69d410
2 changed files with 0 additions and 43 deletions

View file

@ -42,9 +42,6 @@ import com.android.internal.net.VpnProfile;
/** {@hide} */
interface IConnectivityManager
{
// Keep this in sync with framework/native/services/connectivitymanager/ConnectivityManager.h
void markSocketAsUser(in ParcelFileDescriptor socket, int uid);
NetworkInfo getActiveNetworkInfo();
NetworkInfo getActiveNetworkInfoForUid(int uid);
NetworkInfo getNetworkInfo(int networkType);

View file

@ -105,11 +105,6 @@ public class NetworkUtils {
*/
public native static String getDhcpError();
/**
* Set the SO_MARK of {@code socketfd} to {@code mark}
*/
public native static void markSocket(int socketfd, int mark);
/**
* Binds the current process to the network designated by {@code netId}. All sockets created
* in the future (and not explicitly bound via a bound {@link SocketFactory} (see