[gtk-vnc] Remove vnc_connection_get_local



commit e448fa70d9ae9f060e323fd4e916b90cce7b472e
Author: Daniel P. Berrange <berrange redhat com>
Date:   Fri Jul 22 18:43:04 2016 +0100

    Remove vnc_connection_get_local
    
    The last use of this inline method was removed in
    
      commit 37fc69f2da557669b14728e2b4af5147f98a3b3c
      Author: Daniel P. Berrange <berrange redhat com>
      Date:   Thu Nov 19 19:06:00 2009 +0000
    
        Convert VncConnection over to use VncFramebuffer object
    
    Signed-off-by: Daniel P. Berrange <berrange redhat com>

 src/vncconnection.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/vncconnection.c b/src/vncconnection.c
index b357fc5..3e55c2a 100644
--- a/src/vncconnection.c
+++ b/src/vncconnection.c
@@ -2009,18 +2009,6 @@ gboolean vnc_connection_client_cut_text(VncConnection *conn,
 }
 
 
-static inline guint8 *vnc_connection_get_local(VncConnection *conn, int x, int y)
-{
-    VncConnectionPrivate *priv = conn->priv;
-    const VncPixelFormat *local = vnc_framebuffer_get_local_format(priv->fb);
-    int rowstride = vnc_framebuffer_get_rowstride(priv->fb);
-
-    return vnc_framebuffer_get_buffer(priv->fb) +
-        (y * rowstride) +
-        (x * (local->bits_per_pixel / 8));
-}
-
-
 static guint8 vnc_connection_swap_rfb_8(VncConnection *conn G_GNUC_UNUSED, guint8 pixel)
 {
     return pixel;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]