Skip to content

Commit

Permalink
oscmain: remove unnecessary commented lines
Browse files Browse the repository at this point in the history
Signed-off-by: Cristina Suteu <[email protected]>
  • Loading branch information
cristina-suteu committed Feb 7, 2025
1 parent f2e7c76 commit 9adad68
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions oscmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,13 @@ gint main (int argc, char **argv)
while ((c = getopt (argc, argv, "c:p:u:")) != -1)
switch (c) {
case 'c':
//ctx = iio_create_network_context(optarg);
ctx = iio_create_context(NULL, optarg);
if (!ctx) {
printf("Failed connecting to remote device: %s\n", optarg);
exit(-1);
}
break;
case 'u':
//ctx = iio_create_context_from_uri(optarg);
ctx = iio_create_context(NULL, optarg);
if (!ctx) {
printf("Failed connecting to remote device: %s\n", optarg);
Expand Down Expand Up @@ -254,7 +252,6 @@ gint main (int argc, char **argv)
if (!ctx_destroyed_by_do_quit) {
if (!ctx)
connect_dialog(false);
// !!!!!!!
create_default_plot();
if (c == 0) {
if (gtk_check_menu_item_get_active(
Expand Down

0 comments on commit 9adad68

Please sign in to comment.