Commit 423af0ab authored by larchunix's avatar larchunix Committed by larchunix

rdp: remove unused variables

parent d78ee6ca
......@@ -456,7 +456,6 @@ void remmina_rdp_cliprdr_request_data(GtkClipboard *gtkClipboard, GtkSelectionDa
/* Called by GTK when someone press "Paste" on the client side.
* We ask to the server the data we need */
GdkAtom target;
CLIPRDR_FORMAT_DATA_REQUEST* pFormatDataRequest;
rfClipboard* clipboard;
rfContext* rfi = GET_PLUGIN_DATA(gp);
......@@ -471,8 +470,6 @@ void remmina_rdp_cliprdr_request_data(GtkClipboard *gtkClipboard, GtkSelectionDa
return;
}
target = gtk_selection_data_get_target(selection_data);
// clipboard->format = remmina_rdp_cliprdr_get_format_from_gdkatom(target);
clipboard->format = info;
/* Request Clipboard content from the server, the request is async */
......@@ -532,7 +529,6 @@ CLIPRDR_FORMAT_LIST *remmina_rdp_cliprdr_get_client_format_list(RemminaProtocolW
TRACE_CALL(__func__);
GtkClipboard* gtkClipboard;
rfClipboard* clipboard;
rfContext* rfi = GET_PLUGIN_DATA(gp);
GdkAtom* targets;
gboolean result = 0;
......@@ -544,7 +540,6 @@ CLIPRDR_FORMAT_LIST *remmina_rdp_cliprdr_get_client_format_list(RemminaProtocolW
CLIPRDR_FORMAT formats[];
} *retp;
clipboard = &(rfi->clipboard);
formats = NULL;
retp = NULL;
......@@ -601,7 +596,6 @@ void remmina_rdp_cliprdr_get_clipboard_data(RemminaProtocolWidget* gp, RemminaPl
{
TRACE_CALL(__func__);
GtkClipboard* gtkClipboard;
rfClipboard* clipboard;
UINT8* inbuf = NULL;
UINT8* outbuf = NULL;
GdkPixbuf *image = NULL;
......@@ -610,7 +604,6 @@ void remmina_rdp_cliprdr_get_clipboard_data(RemminaProtocolWidget* gp, RemminaPl
RemminaPluginRdpEvent rdp_event = { 0 };
CLIPRDR_FORMAT_DATA_RESPONSE* pFormatDataResponse;
clipboard = ui->clipboard.clipboard;
gtkClipboard = gtk_widget_get_clipboard(rfi->drawing_area, GDK_SELECTION_CLIPBOARD);
if (gtkClipboard) {
switch (ui->clipboard.format) {
......@@ -728,9 +721,7 @@ void remmina_rdp_cliprdr_set_clipboard_data(RemminaProtocolWidget* gp, RemminaPl
GtkTargetEntry* targets;
gint n_targets;
rfContext* rfi = GET_PLUGIN_DATA(gp);
rfClipboard* clipboard;
clipboard = ui->clipboard.clipboard;
targets = gtk_target_table_new_from_list(ui->clipboard.targetlist, &n_targets);
gtkClipboard = gtk_widget_get_clipboard(rfi->drawing_area, GDK_SELECTION_CLIPBOARD);
if (gtkClipboard && targets) {
......
......@@ -249,11 +249,8 @@ static void remmina_rdp_event_update_scale_factor(RemminaProtocolWidget* gp)
GtkAllocation a;
gint rdwidth, rdheight;
gint gpwidth, gpheight;
RemminaFile* remminafile;
rfContext* rfi = GET_PLUGIN_DATA(gp);
remminafile = remmina_plugin_service->protocol_plugin_get_file(gp);
gtk_widget_get_allocation(GTK_WIDGET(gp), &a);
gpwidth = a.width;
gpheight = a.height;
......@@ -568,7 +565,6 @@ static gboolean remmina_rdp_event_on_scroll(GtkWidget* widget, GdkEventScroll* e
static gboolean remmina_rdp_event_on_key(GtkWidget* widget, GdkEventKey* event, RemminaProtocolWidget* gp)
{
TRACE_CALL(__func__);
GdkDisplay* display;
guint32 unicode_keyval;
rfContext* rfi = GET_PLUGIN_DATA(gp);
RemminaPluginRdpEvent rdp_event;
......@@ -620,7 +616,6 @@ static gboolean remmina_rdp_event_on_key(GtkWidget* widget, GdkEventKey* event,
keypress_list_add(gp, rdp_event);
}
} else {
display = gtk_widget_get_display(widget);
unicode_keyval = gdk_keyval_to_unicode(event->keyval);
/* Decide when whe should send a keycode or a unicode character.
* - All non char keys (shift, alt, win) should be sent as keycode
......@@ -843,11 +838,9 @@ void remmina_rdp_event_update_scale(RemminaProtocolWidget* gp)
{
TRACE_CALL(__func__);
gint width, height;
RemminaFile* remminafile;
rdpGdi* gdi;
rfContext* rfi = GET_PLUGIN_DATA(gp);
remminafile = remmina_plugin_service->protocol_plugin_get_file(gp);
width = remmina_plugin_service->protocol_plugin_get_width(gp);
height = remmina_plugin_service->protocol_plugin_get_height(gp);
......
......@@ -316,12 +316,10 @@ BOOL rf_end_paint(rdpContext* context)
UINT32 w, h;
rdpGdi* gdi;
rfContext* rfi;
RemminaProtocolWidget* gp;
RemminaPluginRdpUiObject* ui;
gdi = context->gdi;
rfi = (rfContext*)context;
gp = rfi->protocol_widget;
if (gdi->primary->hdc->hwnd->invalid->null)
return FALSE;
......@@ -373,11 +371,9 @@ static BOOL remmina_rdp_pre_connect(freerdp* instance)
TRACE_CALL(__func__);
rfContext* rfi;
ALIGN64 rdpSettings* settings;
RemminaProtocolWidget* gp;
rfi = (rfContext*)instance->context;
settings = instance->settings;
gp = rfi->protocol_widget;
settings->OsMajorType = OSMAJORTYPE_UNIX;
settings->OsMinorType = OSMINORTYPE_UNSPECIFIED;
......@@ -463,7 +459,6 @@ static BOOL remmina_rdp_post_connect(freerdp* instance)
RemminaProtocolWidget* gp;
RemminaPluginRdpUiObject* ui;
rdpGdi* gdi;
int hdcBytesPerPixel, hdcBitsPerPixel;
rfi = (rfContext*)instance->context;
gp = rfi->protocol_widget;
......@@ -479,16 +474,10 @@ static BOOL remmina_rdp_post_connect(freerdp* instance)
rf_register_graphics(instance->context->graphics);
if (rfi->bpp == 32) {
hdcBytesPerPixel = 4;
hdcBitsPerPixel = 32;
rfi->cairo_format = CAIRO_FORMAT_ARGB32;
}else if (rfi->bpp == 24) {
hdcBytesPerPixel = 4;
hdcBitsPerPixel = 32;
rfi->cairo_format = CAIRO_FORMAT_RGB24;
}else {
hdcBytesPerPixel = 2;
hdcBitsPerPixel = 16;
rfi->cairo_format = CAIRO_FORMAT_RGB16_565;
}
......@@ -1262,11 +1251,8 @@ static gboolean remmina_rdp_query_feature(RemminaProtocolWidget* gp, const Remmi
static void remmina_rdp_call_feature(RemminaProtocolWidget* gp, const RemminaProtocolFeature* feature)
{
TRACE_CALL(__func__);
RemminaFile* remminafile;
rfContext* rfi = GET_PLUGIN_DATA(gp);
remminafile = remmina_plugin_service->protocol_plugin_get_file(gp);
switch (feature->id) {
case REMMINA_RDP_FEATURE_UNFOCUS:
remmina_rdp_event_unfocus(gp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment