Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove dead code #3459

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions src/main/java/com/b44t/messenger/rpc/Rpc.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,6 @@ public JsonElement getResult(String method, Object... params) throws RpcExceptio
}
}

public int addAccount() throws RpcException {
return gson.fromJson(getResult("add_account"), int.class);
}

public void startIO() throws RpcException {
getResult("start_io_for_all_accounts");
}

public void stopIO() throws RpcException {
getResult("stop_io_for_all_accounts");
}

public Map<String, String> getSystemInfo() throws RpcException {
TypeToken<Map<String, String>> mapType = new TypeToken<Map<String, String>>(){};
return gson.fromJson(getResult("get_system_info"), mapType.getType());
}

public List<VcardContact> parseVcard(String path) throws RpcException {
TypeToken<List<VcardContact>> listType = new TypeToken<List<VcardContact>>(){};
return gson.fromJson(getResult("parse_vcard", path), listType.getType());
Expand Down
Loading