From aa7a350688cb0d0b67d66dfa6e15fe8b20c08a46 Mon Sep 17 00:00:00 2001 From: Douglas Araujo <douglas.araujo@ess.eu> Date: Thu, 12 Sep 2024 11:36:56 +0200 Subject: [PATCH] Remove unused methods --- ADOrcaApp/src/orca.cpp | 48 ------------------------------------------ ADOrcaApp/src/orca.h | 1 - 2 files changed, 49 deletions(-) diff --git a/ADOrcaApp/src/orca.cpp b/ADOrcaApp/src/orca.cpp index 88042bf..d6c7781 100644 --- a/ADOrcaApp/src/orca.cpp +++ b/ADOrcaApp/src/orca.cpp @@ -2218,54 +2218,6 @@ asynStatus Orca::setFeature(int featureIndex, double value) { return asynSuccess; } -//============================================================================ -int Orca::getProperties() { - printf("\n[DEBUG] Function:getProperties\n"); - - int32 iProp = 0; // property IDs - - double value = 50; - dcamprop_getvalue(m_hdcam, DCAM_IDPROP_SENSORTEMPERATURE, &value); - printf("The SENSOR TEMPERATURE = %f\n", value); - - DCAMERR err; - err = dcamprop_getnextid(m_hdcam, &iProp, DCAMPROP_OPTION_SUPPORT); - if (failed(err)) { - printError(m_hdcam, err, "dcamprop_getnextid()", - "IDPROP:0x%08x, OPTION:SUPPORT", 0); - return err; - } - - do { - // get property name - char text[64]; - err = dcamprop_getname(m_hdcam, iProp, text, sizeof(text)); - if (failed(err)) { - printError(m_hdcam, err, "dcamprop_getname()", "IDPROP:0x%08x", iProp); - return err; - } - - printf("0x%08x: %s\n", iProp, text); - - // get property attribute - DCAMPROP_ATTR basepropattr; - memset(&basepropattr, 0, sizeof(basepropattr)); - basepropattr.cbSize = sizeof(basepropattr); - basepropattr.iProp = iProp; - - err = dcamprop_getattr(m_hdcam, &basepropattr); - - // get next property id - err = dcamprop_getnextid(m_hdcam, &iProp, DCAMPROP_OPTION_SUPPORT); - if (failed(err)) { - return err; - } - - } while (iProp != 0); - - return 0; -} - int Orca::roundToNearestMultipleOfFour(int value) { int remainder = value % 4; if (remainder == 0) diff --git a/ADOrcaApp/src/orca.h b/ADOrcaApp/src/orca.h index 7bdf685..8802136 100644 --- a/ADOrcaApp/src/orca.h +++ b/ADOrcaApp/src/orca.h @@ -366,7 +366,6 @@ class epicsShareClass Orca : public ADDriver { int dcamdev_string(DCAMERR& err, HDCAM hdcam, int32 idStr, char* text, int32 textbytes); - int getProperties(); int roundToNearestMultipleOfFour(int value); asynStatus setFeature(int featureIndex, double value); -- GitLab