Fix a small bug by removing some useless codes (#15795)

This commit is contained in:
Vane11ope 2020-01-13 18:02:15 +09:00 committed by radare
parent 87d09e3bea
commit 2a20689969
2 changed files with 0 additions and 4 deletions

View File

@ -6616,7 +6616,6 @@ void __handle_tab_new_with_cur_panel (RCore *core) {
if (!new_panels) {
return;
}
new_panels->addr = core->offset;
root->panels[root->n_panels] = new_panels;
RPanels *prev = core->panels;
@ -6723,7 +6722,6 @@ void __panels_process(RCore *core, RPanels *panels) {
RPanels *prev;
prev = core->panels;
core->panels = panels;
core->offset = panels->addr;
panels->autoUpdate = true;
int h, w = r_cons_get_size (&h);
panels->can = __create_new_canvas (core, w, h);
@ -7328,7 +7326,6 @@ repeat:
}
goto repeat;
exit:
core->panels->addr = core->offset;
core->cons->event_resize = NULL;
core->cons->event_data = NULL;
core->print->cur = originCursor;

View File

@ -1174,7 +1174,6 @@ typedef struct r_panels_t {
RPanelsLayout layout;
RList *snows;
char *name;
ut64 addr;
} RPanels;
typedef enum {