Skip to content

Commit c5d5f36

Browse files
committed
remove some old ssh code
1 parent 4ff660c commit c5d5f36

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

app/src/main/java/app/trigger/ssh/SshTools.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ public static KeyPairBean deserializeKeyPair_3_2_3(String str) {
6969
}
7070

7171
try {
72-
//JSch jsch = new JSch();
73-
//KeyPair keypair = KeyPair.load(jsch, str.getBytes(), null);
74-
//keypair.setPublicKeyComment(null);
75-
//return keypair;
7672
return parsePrivateKeyPEM(str);
7773
} catch (Exception e) {
7874
Log.e(TAG, "deserialize error: " + e.toString());
@@ -96,11 +92,6 @@ public static KeyPairBean deserializeKeyPair_1_9_1(String str) {
9692
KeyPairData obj = (KeyPairData) ios.readObject();
9793

9894
return parsePrivateKeyPEM(new String(obj.prvkey));
99-
100-
// KeyParData to KeyPair
101-
//JSch jsch = new JSch();
102-
//KeyPair keypair = KeyPair.load(jsch, obj.prvkey, obj.pubkey);
103-
//return keypair;
10495
} catch (Exception e) {
10596
Log.e(TAG, "deserialize error: " + e.toString());
10697
}

0 commit comments

Comments
 (0)