Skip to content

Commit

Permalink
TriggerScope: Remove unused variables and fields
Browse files Browse the repository at this point in the history
  • Loading branch information
marktsuchida committed Oct 21, 2022
1 parent 582cab1 commit 8fb5c21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
12 changes: 5 additions & 7 deletions DeviceAdapters/TriggerScope/TriggerScope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const char* g_Keyword_Clear_All_Arrays = "Clear All Arrays";


const char* serial_terminator = "\n";
const unsigned char uc_serial_terminator = 10;
const char* line_feed = "\n";
const char * g_TriggerScope_Version = "v1.6.5, 8/16/16";
bool g_bTS16 = false;
Expand Down Expand Up @@ -461,8 +460,8 @@ int CTriggerScopeHub::Initialize()
if (initialized_)
return DEVICE_OK;

char profilepath[1000];
#ifdef _WIN32
char profilepath[1000];
ExpandEnvironmentStrings(TEXT("%userprofile%"),profilepath,1000);

#else
Expand Down Expand Up @@ -1192,10 +1191,10 @@ CTriggerScopeFocus::CTriggerScopeFocus()
sequenceOn_ = true;

CPropertyAction* pAct = new CPropertyAction(this, &CTriggerScopeFocus::OnUpperLimit);
int ret = CreateProperty("Upper Limit", "1000", MM::Float, false, pAct, true);
CreateProperty("Upper Limit", "1000", MM::Float, false, pAct, true);

pAct = new CPropertyAction(this, &CTriggerScopeFocus::OnLowerLimit);
ret = CreateProperty("Lower Limit", "0", MM::Float, false, pAct, true);
CreateProperty("Lower Limit", "0", MM::Float, false, pAct, true);

}

Expand Down Expand Up @@ -2346,11 +2345,10 @@ void CTriggerScopeHub::ReceiveSerialBytes(unsigned char* buf, unsigned long bufl
void CTriggerScopeHub::FlushSerialBytes(unsigned char* buf, unsigned long buflen)
{
buf_string_ = "";
int nRet=0;
unsigned long bytesRead=0;
buf[0] = 0;
nRet = ReadFromComPort(port_.c_str(), buf, buflen, bytesRead);

ReadFromComPort(port_.c_str(), buf, buflen, bytesRead);

if(nUseSerialLog_ && fidSerialLog_)
{
Expand Down
5 changes: 0 additions & 5 deletions DeviceAdapters/TriggerScope/TriggerScope.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ class CTriggerScopeTTL : public CStateDeviceBase<CTriggerScopeTTL>


private:
CTriggerScopeHub *pHub_;
int nChannel_;
long ttl_;
bool initialized_;
Expand All @@ -284,8 +283,6 @@ class CTriggerScopeTTL : public CStateDeviceBase<CTriggerScopeTTL>
long curPos_;

static const unsigned int NUMPATTERNS = 50;
unsigned pattern_[NUMPATTERNS];

};

class CTriggerScopeCAM : public CStateDeviceBase<CTriggerScopeCAM>
Expand All @@ -304,7 +301,6 @@ class CTriggerScopeCAM : public CStateDeviceBase<CTriggerScopeCAM>
int WriteToPort(unsigned long value);

private:
CTriggerScopeHub *pHub_;
int nChannel_;
long cam_;
bool initialized_;
Expand Down Expand Up @@ -380,7 +376,6 @@ class CTriggerScopeFocus : public CStageBase<CTriggerScopeFocus>
return DEVICE_OK;
}
private:
CTriggerScopeHub *pHub_;
bool initialized_;
bool busy_;
double pos_um_;
Expand Down

0 comments on commit 8fb5c21

Please sign in to comment.