summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-21 09:40:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-21 09:40:33 +0000
commitb5f607a4aa5c622efba748a1d443131dbee38ad0 (patch)
tree08eb9e8cb10f352418b2439e28cd16850f088b5d /sc
parent5ce9606a669d451b71c9c0e1da33bb62007d8aae (diff)
callcatcher: update unused code
Change-Id: I225cbb3a4a66a8f20bec91c4770ad78e72b663b1
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/optdlg/calcoptionsdlg.cxx42
-rw-r--r--sc/source/ui/optdlg/calcoptionsdlg.hxx3
2 files changed, 0 insertions, 45 deletions
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx
index 287fccc01345..1b3e13ac1d16 100644
--- a/sc/source/ui/optdlg/calcoptionsdlg.cxx
+++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx
@@ -110,48 +110,6 @@ ScCalcOptionsDialog::ScCalcOptionsDialog(vcl::Window* pParent, const ScCalcConfi
ScCalcOptionsDialog::~ScCalcOptionsDialog() {}
-#if HAVE_FEATURE_OPENCL
-
-void ScCalcOptionsDialog::fillOpenCLList()
-{
- mpOpenclInfoList->SetUpdateMode(false);
- mpOpenclInfoList->Clear();
- SvTreeListEntry* pSoftwareEntry = mpOpenclInfoList->InsertEntry(maSoftware);
-
- OUString aStoredDevice = maConfig.maOpenCLDevice;
-
- SvTreeListEntry* pSelectedEntry = NULL;
-
- sc::FormulaGroupInterpreter::fillOpenCLInfo(maPlatformInfo);
- for(std::vector<OpenCLPlatformInfo>::iterator it = maPlatformInfo.begin(),
- itEnd = maPlatformInfo.end(); it != itEnd; ++it)
- {
- for(std::vector<OpenCLDeviceInfo>::iterator
- itr = it->maDevices.begin(), itrEnd = it->maDevices.end(); itr != itrEnd; ++itr)
- {
- OUString aDeviceId = it->maVendor + " " + itr->maName + " " + itr->maDriver;
- SvTreeListEntry* pEntry = mpOpenclInfoList->InsertEntry(aDeviceId);
- if(aDeviceId == aStoredDevice)
- {
- pSelectedEntry = pEntry;
- }
- pEntry->SetUserData(&(*itr));
- }
- }
-
- mpOpenclInfoList->SetUpdateMode(true);
- mpOpenclInfoList->GetModel()->GetView(0)->SelectAll(false, false);
-
- if (pSelectedEntry)
- mpOpenclInfoList->Select(pSelectedEntry);
- else if (aStoredDevice == OPENCL_SOFTWARE_DEVICE_CONFIG_NAME)
- mpOpenclInfoList->Select(pSoftwareEntry);
-
- SelectedDeviceChanged();
-}
-
-#endif
-
void ScCalcOptionsDialog::OpenCLAutomaticSelectionChanged()
{
bool bValue = mpBtnAutomaticSelectionTrue->IsChecked();
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.hxx b/sc/source/ui/optdlg/calcoptionsdlg.hxx
index 61c5c43d136f..08fad6cf17c3 100644
--- a/sc/source/ui/optdlg/calcoptionsdlg.hxx
+++ b/sc/source/ui/optdlg/calcoptionsdlg.hxx
@@ -53,9 +53,6 @@ public:
private:
void OpenCLAutomaticSelectionChanged();
void SelectedDeviceChanged();
-#if HAVE_FEATURE_OPENCL
- void fillOpenCLList();
-#endif
SvTreeListEntry *createItem(const OUString &rCaption, const OUString& sValue) const;
void setValueAt(size_t nPos, const OUString &rString);