Skip to content

Commit

Permalink
removing some irrelevant qDebug() calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-salfelder committed Sep 19, 2015
1 parent 205fbe7 commit 1cb07bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion qucs/qucs/diagrams/diagram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ void Diagram::loadGraphData(const QString& defaultDataSet)
getAxisLimits(pg);
}

qDebug() << "dataset changes" << No;
// qDebug() << "dataset changes" << No;
if(No <= 0) { // All dataset files unchanged ?
qDebug() << "unchanged";
yAxis.numGraphs = yNum; // rebuild scrollbar position
Expand Down
7 changes: 2 additions & 5 deletions qucs/qucs/diagrams/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ GraphDeque::~GraphDeque()
void GraphDeque::createMarkerText() const
{
for(auto pm : Markers) {
qDebug() << "marker" << pm->varPos().size();
assert(pm);

// no. maybe data has just reloaded...
// assert(pm->splPos().first>=begin());
// assert(pm->splPos().first<=end());

if(pm->splPos().second<_begin()){
qDebug() << "bug, bogus marker";
// qDebug() << "bug, bogus marker";
}else if(pm->splPos().second>=_end()){
qDebug() << "bug, bogus marker end";
}else{
Expand Down Expand Up @@ -282,7 +281,6 @@ GraphDeque* GraphDeque::sameNewOne()
pg->numMode = numMode;
pg->yAxisNo = yAxisNo;

qDebug() << "cloning" << Markers.size() << "Markers";
foreach(Marker *pm, Markers) {
pg->Markers.append(pm->sameNewOne(pg));
}
Expand Down Expand Up @@ -366,7 +364,7 @@ void GraphDeque::samplePos(const_iterator here, std::vector<double>& VarPos) con
*/
Graph::const_iterator Graph::findSample(double& v) const
{
qDebug() << "findsample" << end()-begin();
// qDebug() << "findsample" << end()-begin();
if(end()-begin()==0){
qDebug() << "oops. empty graph?";
return end();
Expand All @@ -386,7 +384,6 @@ Graph::const_iterator Graph::findSample(double& v) const
return i;
}
}
qDebug() << "Graph::findSample, empty";
assert(end()==begin());
return end();
}
Expand Down
3 changes: 0 additions & 3 deletions qucs/qucs/diagrams/marker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ Marker::Marker(GraphDeque::const_iterator const& pos,
}else{
VarPos.resize(pGraph->numAxes());
initText(pos);
qDebug() << "finally create marker Text";
assert(pGraph->begin()<=pos);
assert(pos<=pGraph->end());
createText();
Expand Down Expand Up @@ -188,7 +187,6 @@ void Marker::initText(GraphDeque::const_iterator const& pos)
*/
void Marker::createText()
{
qDebug() << "createText";
assert(pGraph);
if(!(pGraph->cPointsY)) {
makeInvalid();
Expand All @@ -207,7 +205,6 @@ void Marker::createText()


if(splPos().second<pGraph->_begin()){
qDebug() << "bogus marker";
}else if(splPos().second>=pGraph->_end()){
qDebug() << "bogus marker end";
}else{
Expand Down

0 comments on commit 1cb07bb

Please sign in to comment.