Skip to content

Commit

Permalink
Removed unused timers from functions
Browse files Browse the repository at this point in the history
  • Loading branch information
alanspencer committed Apr 14, 2020
1 parent 93280c8 commit 3c48292
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions SPIERSedit/src/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <QImage>
#include <QColor>
#include <QTime>
#include <math.h> //for the pow
#include <math.h>
#include "curves.h"
#include "myscene.h"
#include "brush.h"
Expand Down Expand Up @@ -572,9 +572,6 @@ QByteArray DoMaskLocking()

void MakeLinearGreyScale(int seg, int fnum, bool flag = false)
{
QTime t;
t.start();

//load data for file - can and should assume existing data is safe
if (!flag) LoadAllData(fnum);

Expand Down
5 changes: 2 additions & 3 deletions SPIERSedit/src/fileio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,15 +209,14 @@ int Errors;
void LoadAllData(int fnum)
//Load all info for currentfile into arrays
{
QTime t;
t.start();
int n;
if (fnum < 0)
{
fnum += 10000;
LoadColourData(fnum);

for (n = 0; n < SegmentCount; n++) LoadGreyData(fnum, n);
for (n = 0; n < SegmentCount; n++)
LoadGreyData(fnum, n);

LoadMasks(fnum);

Expand Down

0 comments on commit 3c48292

Please sign in to comment.