Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinw66 committed Aug 12, 2024
1 parent d664654 commit ec53d0c
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,19 @@
*/
package org.apache.bigtop.manager.stack.core.utils.linux;

import lombok.extern.slf4j.Slf4j;
import org.apache.bigtop.manager.common.shell.ShellExecutor;
import org.apache.bigtop.manager.common.shell.ShellResult;
import org.apache.bigtop.manager.common.utils.FileUtils;
import org.apache.bigtop.manager.stack.core.exception.StackException;

import org.apache.commons.lang3.StringUtils;

import org.springframework.util.CollectionUtils;

import lombok.extern.slf4j.Slf4j;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Stream;

Expand Down Expand Up @@ -287,7 +282,6 @@ public static boolean isUserExists(String user) {
* @return primary group, if user not exists, return null
*/
public static String getUserPrimaryGroup(String user) {
Map<String, String> res = new HashMap<>();
if (!isUserExists(user)) {
return null;
}
Expand Down

0 comments on commit ec53d0c

Please sign in to comment.