Skip to content

Commit 0f7bb73

Browse files
author
Daan Hoogland
committed
remove code in comments
1 parent fd9bfb3 commit 0f7bb73

File tree

16 files changed

+6
-54
lines changed

16 files changed

+6
-54
lines changed

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

engine/schema/src/main/java/com/cloud/dc/dao/ClusterVSMMapDaoImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ public class ClusterVSMMapDaoImpl extends GenericDaoBase<ClusterVSMMapVO, Long>
3636
final SearchBuilder<ClusterVSMMapVO> VsmSearch;
3737

3838
public ClusterVSMMapDaoImpl() {
39-
//super();
4039

4140
ClusterSearch = createSearchBuilder();
4241
ClusterSearch.and("clusterId", ClusterSearch.entity().getClusterId(), SearchCriteria.Op.EQ);

engine/schema/src/main/java/org/apache/cloudstack/storage/datastore/db/VolumeDataStoreVO.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,8 @@ public VolumeDataStoreVO(long hostId, long volumeId) {
209209

210210
public VolumeDataStoreVO(long hostId, long volumeId, Date lastUpdated, int downloadPercent, Status downloadState, String localDownloadPath, String errorString,
211211
String jobId, String installPath, String downloadUrl, String checksum) {
212-
// super();
213212
dataStoreId = hostId;
214213
this.volumeId = volumeId;
215-
// this.zoneId = zoneId;
216214
this.lastUpdated = lastUpdated;
217215
this.downloadPercent = downloadPercent;
218216
this.downloadState = downloadState;

plugins/network-elements/cisco-vnmc/src/main/java/com/cloud/network/cisco/CiscoVnmcConnectionImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ private String getXml(String filename) {
136136
String xml = "";
137137
String line;
138138
while ((line = br.readLine()) != null) {
139-
//xml += line.replaceAll("\n"," ");
140139
xml += line;
141140
}
142141

plugins/network-elements/juniper-contrail/src/test/java/org/apache/cloudstack/network/contrail/management/ManagementServerMock.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,7 @@ public Object answer(InvocationOnMock invocation) {
239239
try {
240240
_vmMgr.addVmToNetwork(vm, network, profile);
241241
} catch (Exception ex) {
242-
// TODO Auto-generated catch block
243-
//ex.printStackTrace();
242+
// ignored
244243
}
245244
return vm;
246245
}

plugins/storage/volume/nexenta/src/main/java/org/apache/cloudstack/storage/datastore/driver/NexentaPrimaryDataStoreDriver.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ public void deleteAsync(DataStore store, DataObject data, AsyncCompletionCallbac
187187
NexentaStorAppliance appliance = getNexentaStorAppliance(storagePoolId);
188188
StoragePoolVO storagePool = _storagePoolDao.findById(storagePoolId);
189189

190-
191-
192-
// _storagePoolDao.update(stoagePoolId);
193190
} else {
194191
errorMessage = String.format(
195192
"Invalid DataObjectType(%s) passed to deleteAsync",

plugins/storage/volume/storpool/src/main/java/org/apache/cloudstack/storage/datastore/util/StorPoolHelper.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -175,32 +175,6 @@ public static Map<String, String> addStorPoolTags(String name, String vmUuid, St
175175
return tags;
176176
}
177177

178-
// Initialize custom logger for updated volume and snapshots
179-
// public static void appendLogger(Logger log, String filePath, String kindOfLog) {
180-
// Appender appender = null;
181-
// PatternLayout patternLayout = new PatternLayout();
182-
// patternLayout.setConversionPattern("%d{YYYY-MM-dd HH:mm:ss.SSS} %m%n");
183-
// SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
184-
// Timestamp timestamp = new Timestamp(System.currentTimeMillis());
185-
// String path = filePath + "-" + sdf.format(timestamp) + ".log";
186-
// try {
187-
// appender = new RollingFileAppender(patternLayout, path);
188-
// log.setAdditivity(false);
189-
// log.addAppender(appender);
190-
// } catch (IOException e) {
191-
// e.printStackTrace();
192-
// }
193-
// if (kindOfLog.equals("update")) {
194-
// StorPoolUtil.spLog(
195-
// "You can find information about volumes and snapshots, which will be updated in Database with their globalIs in %s log file",
196-
// path);
197-
// } else if (kindOfLog.equals("abandon")) {
198-
// StorPoolUtil.spLog(
199-
// "You can find information about volumes and snapshots, for which CloudStack doesn't have information in %s log file",
200-
// path);
201-
// }
202-
// }
203-
204178
public static void setSpClusterIdIfNeeded(long hostId, String clusterId, ClusterDao clusterDao, HostDao hostDao,
205179
ClusterDetailsDao clusterDetails) {
206180
HostVO host = hostDao.findById(hostId);

0 commit comments

Comments
 (0)