Skip to content

Commit 343a573

Browse files
committed
Remove comments
1 parent 9c28653 commit 343a573

File tree

5 files changed

+4
-46
lines changed

5 files changed

+4
-46
lines changed

Source/Processors/ProcessorGraph/ProcessorGraph.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,9 @@ GenericProcessor* ProcessorGraph::createProcessor (Plugin::Description& descript
236236

237237
if (sourceNode != nullptr)
238238
LOGDD ("Source node: ", sourceNode->getName());
239-
//else
240-
// LOGD("No source node.");
241239

242240
if (destNode != nullptr)
243241
LOGDD ("Dest node: ", destNode->getName());
244-
//else
245-
// LOGD("No dest node.");
246242

247243
try
248244
{
@@ -686,7 +682,6 @@ void ProcessorGraph::updateSettings (GenericProcessor* processor, bool signalCha
686682
// prevents calls from within processors from triggering full update during loading
687683
if (signalChainIsLoading != isLoadingSignalChain)
688684
{
689-
//updateViews(processor);
690685
return;
691686
}
692687

@@ -865,10 +860,6 @@ void ProcessorGraph::connectMergerSource (GenericProcessor* merger_, GenericProc
865860
emptyProcessors.removeObject (merger->getSourceNode (path));
866861
}
867862

868-
// merger->switchIO(path);
869-
// merger->setMergerSourceNode(sourceNode);
870-
// sourceNode->setDestNode(merger);
871-
872863
while (anotherSource->getSourceNode() != nullptr)
873864
anotherSource = anotherSource->getSourceNode();
874865

@@ -1387,8 +1378,6 @@ void ProcessorGraph::connectProcessors (GenericProcessor* source, GenericProcess
13871378
cs.channelIndex = chan;
13881379
cd.channelIndex = dest->getIndexOfMatchingChannel (source->getContinuousChannel (chan));
13891380

1390-
//LOGG(" Source channel: ", cs.channelIndex, ", Dest Channel: ", cd.channelIndex);
1391-
13921381
if (cd.channelIndex > -1)
13931382
{
13941383
addConnection (Connection (cs, cd));

Source/Processors/RecordNode/RecordNode.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -874,8 +874,6 @@ void RecordNode::process (AudioBuffer<float>& buffer)
874874

875875
int64 firstSampleNumberInBlock = getFirstSampleNumberForBlock (streamId);
876876

877-
//LOGD ("First sample number for stream ", streamId, ": ", firstSampleNumberInBlock);
878-
879877
MidiBuffer& eventBuffer = *AccessClass::ExternalProcessorAccessor::getMidiBuffer (this);
880878
HeapBlock<char> data;
881879

Source/Processors/SourceNode/SourceNode.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ void SourceNode::updateSettings()
133133

134134
resizeBuffers();
135135

136-
//std::cout << " Source node num continuous channels: " << continuousChannels.size() << std::endl;
137-
138136
for (int i = 0; i < continuousChannels.size(); i++)
139137
continuousChannels[i]->addProcessor (this);
140138

@@ -200,18 +198,14 @@ bool SourceNode::tryEnablingEditor()
200198
{
201199
if (! isSourcePresent())
202200
{
203-
//LOGD("No input source found.");
204201
return false;
205202
}
206203

207-
//LOGD("isEnabled = ", isEnabled, " (tryEnablingEditor)");
208-
209204
if (isEnabled)
210205
{
211206
// If we're already enabled (e.g. if we're being called again
212207
// due to timerCallback()), then there's no need to go through
213208
// the editor again.
214-
//LOGD("We're already enabled; returning.");
215209
return true;
216210
}
217211

@@ -317,13 +311,8 @@ void SourceNode::process (AudioBuffer<float>& buffer)
317311
copiedChannels,
318312
channelsToCopy);
319313

320-
//std::cout << getNodeId() << " " << streamIdx << " " << nSamples << std::endl;
321-
322314
copiedChannels += channelsToCopy;
323315

324-
//if (getFirstSampleNumberForBlock(dataStreams[streamIdx]->getStreamId()) > sampleNumber)
325-
// std::cout << "SET ERROR: " << getNodeId() << " " << dataStreams[streamIdx]->getStreamId() << std::endl;
326-
327316
setTimestampAndSamples (sampleNumber,
328317
timestamp,
329318
nSamples,

Source/UI/GraphViewer.cpp

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,14 @@ GraphViewport::GraphViewport (GraphViewer* gv)
4949
currentVersionText = "GUI version " + app->getApplicationVersion();
5050

5151
bw_logo = ImageCache::getFromMemory (BinaryData::bw_logo72_png, BinaryData::bw_logo72_pngSize);
52-
colour_logo = ImageCache::getFromMemory (BinaryData::color_logo72_png, BinaryData::color_logo72_pngSize);
53-
54-
current_logo = &bw_logo;
5552
}
5653

5754
void GraphViewport::paint (Graphics& g)
5855
{
5956
g.fillAll (findColour (ThemeColours::componentParentBackground));
6057
g.setOpacity (0.6f);
6158

62-
g.drawImageAt (*current_logo, getWidth() - 175, getHeight() - 115);
59+
g.drawImageAt (bw_logo, getWidth() - 175, getHeight() - 115);
6360

6461
g.setOpacity (1.0f);
6562
g.setColour (findColour (ThemeColours::componentBackground).brighter (0.3f));
@@ -73,14 +70,6 @@ void GraphViewport::resized()
7370
viewport->setBounds (0, 0, getWidth(), getHeight());
7471
}
7572

76-
void GraphViewport::lookAndFeelChanged()
77-
{
78-
//if (findColour(ThemeColours::highlightedFill) == Colour(138, 193, 232)) // light mode
79-
// current_logo = &colour_logo;
80-
//else
81-
// current_logo = &bw_logo;
82-
}
83-
8473
GraphViewer::GraphViewer()
8574
{
8675
setBufferedToImage (true);
@@ -1198,7 +1187,6 @@ String GraphNode::getInfoString()
11981187
void GraphNode::paint (Graphics& g)
11991188
{
12001189
g.fillAll (findColour (ThemeColours::componentParentBackground));
1201-
//g.setFont(Font("Inter", "Medium", 14));
12021190

12031191
g.setFont (FontOptions ("Fira Code", "Regular", 13.0f));
12041192

@@ -1222,9 +1210,9 @@ void GraphNode::paint (Graphics& g)
12221210
if (processorInfoVisible)
12231211
g.fillRect (0, 19, getWidth(), 1);
12241212

1225-
g.setColour (findColour (ThemeColours::defaultText)); // : editor->getBackgroundColour());
1213+
g.setColour (findColour (ThemeColours::defaultText));
12261214
g.drawText (String (nodeId), 1, 1, 23, 20, Justification::centred, true);
1227-
g.setColour (Colours::white); // : editor->getBackgroundColour());
1215+
g.setColour (Colours::white);
12281216
g.setFont (FontOptions ("CP Mono", "Plain", 15.0f));
12291217
g.drawText (getName().toUpperCase(), 30, 1, getWidth() - 30, 20, Justification::left, true);
12301218
}

Source/UI/GraphViewer.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,7 @@ class GraphNode : public Component,
232232
/** Sets the horizontal shift (x-position of node in graph display) */
233233
void setHorzShift (int newHorizontalShift);
234234

235-
/** Not currently used (consider deleting) */
236-
//void switchIO (int path);
235+
/** Sets the vertical shift (y-position of node in graph display) */
237236
void verticalShift (int pixels);
238237

239238
/** Adjusts the boundaries of this node, based on its inputs and outputs*/
@@ -315,9 +314,6 @@ class GraphViewport : public Visualizer
315314
/** Sets viewport bounds*/
316315
void resized() override;
317316

318-
/** Called when look and feel is updated */
319-
void lookAndFeelChanged() override;
320-
321317
private:
322318
/** Scroll area*/
323319
std::unique_ptr<Viewport> viewport;
@@ -327,8 +323,6 @@ class GraphViewport : public Visualizer
327323

328324
/** Logos to display*/
329325
Image bw_logo;
330-
Image colour_logo;
331-
Image* current_logo;
332326
};
333327

334328
/**

0 commit comments

Comments
 (0)