summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-18 13:30:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-19 08:08:52 +0200
commit1e9bde7825a5b63c0f1502bd3ebf5173bdf57111 (patch)
treeae2ff63b2b5615ad422703d2b22e03ba68039378 /include/vcl
parenta4d2720ebdc6cdd700ca2cfa0d8e2db22a17e4c2 (diff)
loplugin:unusedmethods
Change-Id: I2b7a055a44c63bfc072b82580811898e177fbb8e Reviewed-on: https://gerrit.libreoffice.org/57628 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/opengl/OpenGLContext.hxx1
-rw-r--r--include/vcl/opengl/OpenGLHelper.hxx1
-rw-r--r--include/vcl/openglwin.hxx63
3 files changed, 0 insertions, 65 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx
index 62a526a09a80..814dba0fb195 100644
--- a/include/vcl/opengl/OpenGLContext.hxx
+++ b/include/vcl/opengl/OpenGLContext.hxx
@@ -135,7 +135,6 @@ public:
void show();
void setWinPosAndSize(const Point &rPos, const Size& rSize);
- void setWinSize(const Size& rSize);
virtual const GLWindow& getOpenGLWindow() const = 0;
SystemChildWindow* getChildWindow();
diff --git a/include/vcl/opengl/OpenGLHelper.hxx b/include/vcl/opengl/OpenGLHelper.hxx
index ab3eca6d3acf..26b293262ae3 100644
--- a/include/vcl/opengl/OpenGLHelper.hxx
+++ b/include/vcl/opengl/OpenGLHelper.hxx
@@ -57,7 +57,6 @@ public:
* The caller is responsible for allocate the memory for the RGBA buffer, before call
* this method. RGBA buffer size is assumed to be 4*width*height.
**/
- static void ConvertBitmapExToRGBATextureBuffer(const BitmapEx& rBitmapEx, sal_uInt8* o_pRGBABuffer);
static BitmapEx ConvertBGRABufferToBitmapEx(const sal_uInt8* const pBuffer, long nWidth, long nHeight);
static void renderToFile(long nWidth, long nHeight, const OUString& rFileName);
diff --git a/include/vcl/openglwin.hxx b/include/vcl/openglwin.hxx
deleted file mode 100644
index 3775b62491e6..000000000000
--- a/include/vcl/openglwin.hxx
+++ /dev/null
@@ -1,63 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-#ifndef INCLUDED_VCL_OPENGLWIN_HXX
-#define INCLUDED_VCL_OPENGLWIN_HXX
-
-#include <memory>
-#include <vcl/event.hxx>
-#include <vcl/syschild.hxx>
-#include <vcl/dllapi.h>
-
-class OpenGLContext;
-class OpenGLWindowImpl;
-
-class VCL_DLLPUBLIC IRenderer
-{
-public:
- virtual ~IRenderer() {}
- virtual void update() = 0;
- virtual void clickedAt(const Point& rPos, sal_uInt16 nButtons) = 0;
- virtual void mouseDragMove(const Point& rPosBegin, const Point& rPosEnd, sal_uInt16 nButtons) = 0;
- virtual void scroll(long nDelta) = 0;
-
- virtual void contextDestroyed() = 0;
-};
-
-// pImpl Pattern to avoid linking against OpenGL libs when using the class without the context
-class VCL_DLLPUBLIC OpenGLWindow : public vcl::Window
-{
-public:
- OpenGLWindow(vcl::Window* pParent, bool bInit);
- virtual ~OpenGLWindow() override;
- virtual void dispose() override;
-
- OpenGLContext& getContext();
-
- void setRenderer(IRenderer* pRenderer);
-
- virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) override;
-
- virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
- virtual void MouseButtonUp( const MouseEvent& rMEvt ) override;
- virtual void MouseMove( const MouseEvent& rMEvt ) override;
- virtual void Command( const CommandEvent& rCEvt ) override;
-
- void Initialize();
-
-private:
- std::unique_ptr<OpenGLWindowImpl> mxImpl;
- IRenderer* mpRenderer;
-
- Point maStartPoint;
-};
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */