1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 17:19:39 +02:00

Remove some duplicate IQ code

and some dead code in Socks5PacketUtils.
This commit is contained in:
Florian Schmaus 2014-07-04 23:51:00 +02:00
parent afd1f6bc36
commit f05b208120
3 changed files with 4 additions and 69 deletions

View file

@ -39,7 +39,6 @@ public class Socks5PacketUtils {
*/
public static Bytestream createBytestreamInitiation(String from, String to, String sessionID) {
Bytestream bytestream = new Bytestream();
bytestream.getPacketID();
bytestream.setFrom(from);
bytestream.setTo(to);
bytestream.setSessionID(sessionID);
@ -57,7 +56,6 @@ public class Socks5PacketUtils {
*/
public static Bytestream createBytestreamResponse(String from, String to) {
Bytestream streamHostInfo = new Bytestream();
streamHostInfo.getPacketID();
streamHostInfo.setFrom(from);
streamHostInfo.setTo(to);
streamHostInfo.setType(IQ.Type.result);
@ -73,7 +71,6 @@ public class Socks5PacketUtils {
*/
public static DiscoverItems createDiscoverItems(String from, String to) {
DiscoverItems discoverItems = new DiscoverItems();
discoverItems.getPacketID();
discoverItems.setFrom(from);
discoverItems.setTo(to);
discoverItems.setType(IQ.Type.result);
@ -89,7 +86,6 @@ public class Socks5PacketUtils {
*/
public static DiscoverInfo createDiscoverInfo(String from, String to) {
DiscoverInfo discoverInfo = new DiscoverInfo();
discoverInfo.getPacketID();
discoverInfo.setFrom(from);
discoverInfo.setTo(to);
discoverInfo.setType(IQ.Type.result);
@ -112,7 +108,6 @@ public class Socks5PacketUtils {
}
};
response.getPacketID();
response.setFrom(from);
response.setTo(to);
response.setType(IQ.Type.result);