Skip to content

Commit c812954

Browse files
authored
removed code in comments (#11145)
1 parent b0d74fe commit c812954

File tree

112 files changed

+52
-901
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+52
-901
lines changed

agent/src/main/java/com/cloud/agent/Agent.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,6 @@ public void doTask(final Task task) throws TaskExecutionException {
13221322
processResponse((Response)request, task.getLink());
13231323
} else {
13241324
//put the requests from mgt server into another thread pool, as the request may take a longer time to finish. Don't block the NIO main thread pool
1325-
//processRequest(request, task.getLink());
13261325
requestHandler.submit(new AgentRequestHandler(getType(), getLink(), request));
13271326
}
13281327
} catch (final ClassNotFoundException e) {

api/src/main/java/com/cloud/host/HostStats.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,4 @@ public interface HostStats {
3636
public HostStats getHostStats();
3737

3838
public double getLoadAverage();
39-
// public double getXapiMemoryUsageKBs();
4039
}

api/src/main/java/com/cloud/network/rules/LbStickinessMethod.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ public LbStickinessMethod(StickinessMethodType methodType, String description) {
108108
}
109109

110110
public void addParam(String name, Boolean required, String description, Boolean isFlag) {
111-
/* FIXME : UI is breaking if the capability string length is larger , temporarily description is commented out */
112-
// LbStickinessMethodParam param = new LbStickinessMethodParam(name, required, description);
111+
/* is this still a valid comment: FIXME : UI is breaking if the capability string length is larger , temporarily description is commented out */
113112
LbStickinessMethodParam param = new LbStickinessMethodParam(name, required, " ", isFlag);
114113
_paramList.add(param);
115114
return;
@@ -133,7 +132,6 @@ public String getDescription() {
133132

134133
public void setDescription(String description) {
135134
/* FIXME : UI is breaking if the capability string length is larger , temporarily description is commented out */
136-
//this.description = description;
137135
this._description = " ";
138136
}
139137
}

api/src/main/java/org/apache/cloudstack/api/command/admin/iso/ListIsoPermissionsCmdByAdmin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensedname = "listIsoPermissions", to the Apache Software Foundation (ASF) under one
1+
// Licensed to the Apache Software Foundation (ASF) under one
22
// or more contributor license agreements. See the NOTICE file
33
// distributed with this work for additional information
44
// regarding copyright ownership. The ASF licenses this file

api/src/main/java/org/apache/cloudstack/api/command/admin/template/ListTemplatePermissionsCmdByAdmin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensedname = "listTemplatePermissions", to the Apache Software Foundation (ASF) under one
1+
// Licensed to the Apache Software Foundation (ASF) under one
22
// or more contributor license agreements. See the NOTICE file
33
// distributed with this work for additional information
44
// regarding copyright ownership. The ASF licenses this file

api/src/main/java/org/apache/cloudstack/api/command/user/iso/ListIsoPermissionsCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensedname = "listIsoPermissions", to the Apache Software Foundation (ASF) under one
1+
// Licensed to the Apache Software Foundation (ASF) under one
22
// or more contributor license agreements. See the NOTICE file
33
// distributed with this work for additional information
44
// regarding copyright ownership. The ASF licenses this file

api/src/main/java/org/apache/cloudstack/api/command/user/template/ListTemplatePermissionsCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensedname = "listTemplatePermissions", to the Apache Software Foundation (ASF) under one
1+
// Licensed to the Apache Software Foundation (ASF) under one
22
// or more contributor license agreements. See the NOTICE file
33
// distributed with this work for additional information
44
// regarding copyright ownership. The ASF licenses this file

api/src/main/java/org/apache/cloudstack/api/response/SslCertResponse.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import org.apache.cloudstack.network.tls.SslCert;
2828
import com.cloud.serializer.Param;
2929

30-
//import org.apache.cloudstack.api.EntityReference;
31-
3230
@EntityReference(value = SslCert.class)
3331
public class SslCertResponse extends BaseResponse {
3432

api/src/test/java/org/apache/cloudstack/api/command/test/ScaleVMCmdTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ public void testCreateSuccess() {
7878
scaleVMCmd._responseGenerator = responseGenerator;
7979

8080
UserVmResponse userVmResponse = Mockito.mock(UserVmResponse.class);
81-
//List<UserVmResponse> list = Mockito.mock(UserVmResponse.class);
82-
//list.add(userVmResponse);
83-
//LinkedList<UserVmResponse> mockedList = Mockito.mock(LinkedList.class);
84-
//Mockito.when(mockedList.get(0)).thenReturn(userVmResponse);
8581

8682
List<UserVmResponse> list = new LinkedList<UserVmResponse>();
8783
list.add(userVmResponse);

core/src/main/java/com/cloud/network/HAProxyConfigurator.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,6 @@ public String[] generateConfiguration(final LoadBalancerConfigCommand lbCmd) {
629629
}
630630
}
631631
result.addAll(gSection);
632-
// TODO decide under what circumstances these options are needed
633-
// result.add("\tnokqueue");
634-
// result.add("\tnopoll");
635632

636633
result.add(blankLine);
637634
final List<String> dSection = Arrays.asList(defaultsSection);

0 commit comments

Comments
 (0)