mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-16 10:38:45 +00:00
remove dead code
This commit is contained in:
parent
4c820f87cb
commit
f141437b01
@ -528,16 +528,6 @@ static void cmd_open_map (RCore *core, const char *input) {
|
||||
id = (ut32)r_num_math (core->num, input+3); //mapid
|
||||
new = r_num_math (core->num, P+1);
|
||||
r_io_map_remap (core->io, id, new);
|
||||
#if 0
|
||||
map = r_io_map_resolve (core->io, id); //the remapping should be done in the api
|
||||
if (map) {
|
||||
ut64 diff = map->to - map->from;
|
||||
map->from = new;
|
||||
map->to = new + diff; //this is so risky
|
||||
} else {
|
||||
eprintf ("Cannot find any map with mapid %d\n", id);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case 'p':
|
||||
|
Loading…
x
Reference in New Issue
Block a user