diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-05 17:19:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-05 18:31:20 +0200 |
commit | 5926b22b5dc33490d23d594b129eb8a70b94ffb0 (patch) | |
tree | 366bf4c969c0a7118c95dae249de74bc4f866d74 /canvas/source/directx/dx_canvas.cxx | |
parent | 623c0cff7589e3f2298c16c7402cf160b99fabe2 (diff) |
The SystemEnvData passed into the canvas factories appears to be unused
It was passed in as aArg[1] ever since d551190e8311242eadda4a3e82efff160175cb04
"INTEGRATION: CWS canvas05", but I can't find any current use of that specific
argument in canvas/source/ (assuming that all the factories are implemented
there), nor can I find any trace in the git history of it ever havig been used.
That means that Window::GetSystemDataAny is unused now and can be removed.
Change-Id: I16efe548afb5cc3e0606cffea135f7e6674d5def
Reviewed-on: https://gerrit.libreoffice.org/80295
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'canvas/source/directx/dx_canvas.cxx')
-rw-r--r-- | canvas/source/directx/dx_canvas.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/canvas/source/directx/dx_canvas.cxx b/canvas/source/directx/dx_canvas.cxx index e9fde8ae8fa5..eb00ec6591fc 100644 --- a/canvas/source/directx/dx_canvas.cxx +++ b/canvas/source/directx/dx_canvas.cxx @@ -87,12 +87,12 @@ namespace dxcanvas // At index 1, we expect a HWND handle here, containing a // pointer to a valid window, on which to output // At index 2, we expect the current window bound rect - ENSURE_ARG_OR_THROW( maArguments.getLength() >= 6 && - maArguments[5].getValueTypeClass() == uno::TypeClass_SEQUENCE, + ENSURE_ARG_OR_THROW( maArguments.getLength() >= 5 && + maArguments[4].getValueTypeClass() == uno::TypeClass_SEQUENCE, "Canvas::initialize: wrong number of arguments, or wrong types" ); uno::Sequence<sal_Int8> aSeq; - maArguments[5] >>= aSeq; + maArguments[4] >>= aSeq; const SystemGraphicsData* pSysData=reinterpret_cast<const SystemGraphicsData*>(aSeq.getConstArray()); if( !pSysData || !pSysData->hDC ) @@ -148,12 +148,12 @@ namespace dxcanvas // At index 1, we expect a HWND handle here, containing a // pointer to a valid window, on which to output // At index 2, we expect the current window bound rect - ENSURE_ARG_OR_THROW( maArguments.getLength() >= 6 && - maArguments[5].getValueTypeClass() == uno::TypeClass_SEQUENCE, + ENSURE_ARG_OR_THROW( maArguments.getLength() >= 5 && + maArguments[4].getValueTypeClass() == uno::TypeClass_SEQUENCE, "Canvas::initialize: wrong number of arguments, or wrong types" ); uno::Sequence<sal_Int8> aSeq; - maArguments[5] >>= aSeq; + maArguments[4] >>= aSeq; const SystemGraphicsData* pSysData=reinterpret_cast<const SystemGraphicsData*>(aSeq.getConstArray()); if( !pSysData || !pSysData->hDC ) |