Skip to content

Commit af9b93c

Browse files
committed
Removed unnecessary comments
1 parent 607e336 commit af9b93c

File tree

1 file changed

+0
-60
lines changed

1 file changed

+0
-60
lines changed

src/io/github/rowak/nanoleafdesktop/ambilight/AmbilightHandler.java

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ public void start()
7373
panels[0] = canvas.getGroupPanels();
7474
rows = new Panel[auroras.length][][];
7575
rows[0] = PanelTableSort.getRows(panels[0]);
76-
// for (int i = 0; i < auroras.length; i++)
77-
// {
78-
// panels[i] = getSortedPanels(auroras[i]);
79-
// rows[i] = PanelTableSort.getRows(panels[i]);
80-
// }
8176
saveCurrentEffect();
8277
startExternalStreaming();
8378
timer = new Timer(delay, new ActionListener()
@@ -220,61 +215,6 @@ else if (deviceType.equals("canvas"))
220215
}
221216
}
222217

223-
// private void applySelectionMode()
224-
// throws StatusCodeException, IOException
225-
// {
226-
// for (int p = 0; p < auroras.length; p++)
227-
// {
228-
// String deviceType = getDeviceType(auroras[p]);
229-
// CustomEffectBuilder ceb = new CustomEffectBuilder(auroras[p]);
230-
// CanvasAnimDataBuilder cadb = new CanvasAnimDataBuilder(auroras[p]);
231-
// BufferedImage img = getScreenImage();
232-
// final int VERTICAL_SEPARATOR = captureArea.height/rows[p].length;
233-
// for (int i = 0; i < rows[p].length; i++)
234-
// {
235-
// int captureY = VERTICAL_SEPARATOR*i + VERTICAL_SEPARATOR/2;
236-
//
237-
// Map<Panel, Color> colors = new HashMap<Panel, Color>();
238-
// for (int j = 0; j < rows[p][i].length; j++)
239-
// {
240-
// final int HORIZONTAL_SEPARATOR = captureArea.width/rows[p][i].length;
241-
// int captureX = HORIZONTAL_SEPARATOR*j + HORIZONTAL_SEPARATOR/2;
242-
//
243-
// try
244-
// {
245-
// if (img.getSubimage(captureX, captureY, 1, 1) != null)
246-
// {
247-
// Color color = new Color(img.getRGB(captureX, captureY));
248-
// if (deviceType.equals("aurora"))
249-
// {
250-
// ceb.addFrame(rows[p][i][j], new Frame(color.getRed(),
251-
// color.getGreen(), color.getBlue(), 0, 5));
252-
// }
253-
// else if (deviceType.equals("canvas"))
254-
// {
255-
// cadb.addFrame(rows[p][i][j], new Frame(color.getRed(),
256-
// color.getGreen(), color.getBlue(), 0, 5));
257-
// }
258-
// colors.put(rows[p][i][j], color);
259-
// }
260-
// }
261-
// catch (RasterFormatException rfe)
262-
// {
263-
// // catch, but ignore
264-
// }
265-
// }
266-
// }
267-
// if (deviceType.equals("aurora"))
268-
// {
269-
// auroras[p].externalStreaming().sendStaticEffect(ceb.build("", false));
270-
// }
271-
// else if (deviceType.equals("canvas"))
272-
// {
273-
// CanvasExtStreaming.sendAnimData(cadb.build(), auroras[p]);
274-
// }
275-
// }
276-
// }
277-
278218
public boolean isRunning()
279219
{
280220
return running;

0 commit comments

Comments
 (0)