summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-02-24 16:28:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2016-02-24 16:28:06 +0100
commitcef666d8c376d06b4a32566f83496124472b2201 (patch)
tree505b6e9e208727cf3fb77023436f46c950240bda /vcl/opengl
parentb50071c817657866f8b22873be26d34970005a2d (diff)
-Werror,-Wunused-function
since ce81a477d228277f44e96356e85d92467eb7a0b9 "tdf#97458 - remove unused intel opengl driver version special-casing." Change-Id: I4d1e804bef054db5a999b23c35c308e1a0c5ece3
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/win/WinDeviceInfo.cxx43
1 files changed, 0 insertions, 43 deletions
diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx
index 161d29a9cd1a..4f334539f490 100644
--- a/vcl/opengl/win/WinDeviceInfo.cxx
+++ b/vcl/opengl/win/WinDeviceInfo.cxx
@@ -27,49 +27,6 @@ std::vector<wgl::DriverInfo> WinOpenGLDeviceInfo::maDriverInfo;
namespace {
-
-void GetDLLVersion(const sal_Unicode* aDLLPath, OUString& aVersion)
-{
- DWORD versInfoSize, vers[4] = {0};
- // version info not available case
- aVersion = OUString("0.0.0.0");
- versInfoSize = GetFileVersionInfoSizeW(aDLLPath, nullptr);
- std::vector<char> versionInfo(512, 0);
-
- if (versInfoSize == 0)
- {
- return;
- }
- versionInfo.resize(uint32_t(versInfoSize));
-
- if (!GetFileVersionInfoW(aDLLPath, 0, versInfoSize,
- LPBYTE(&versionInfo[0])))
- {
- return;
- }
-
- UINT len = 0;
- VS_FIXEDFILEINFO *fileInfo = nullptr;
- if (!VerQueryValue(LPBYTE(&versionInfo[0]), TEXT("\\"),
- (LPVOID *)&fileInfo, &len) ||
- len == 0 ||
- fileInfo == nullptr)
- {
- return;
- }
-
- DWORD fileVersMS = fileInfo->dwFileVersionMS;
- DWORD fileVersLS = fileInfo->dwFileVersionLS;
-
- vers[0] = HIWORD(fileVersMS);
- vers[1] = LOWORD(fileVersMS);
- vers[2] = HIWORD(fileVersLS);
- vers[3] = LOWORD(fileVersLS);
-
- aVersion = OUString::number(vers[0]) + "." + OUString::number(vers[1])
- + "." + OUString::number(vers[2]) + "." + OUString::number(vers[3]);
-}
-
/*
* Compute the length of an array with constant length. (Use of this method
* with a non-array pointer will not compile.)