Revert "Fixes the three open methods of the cpp wrapper that do not get an usb-device...
[libftdi] / ftdipp / ftdi.cpp
index 5868405..8511a91 100644 (file)
@@ -85,8 +85,6 @@ int Context::open(int vendor, int product)
     if (ret < 0)
        return ret;
 
-    d->dev = usb_device(d->ftdi->usb_dev);
-
     return get_strings_and_reopen();
 }
 
@@ -106,8 +104,6 @@ int Context::open(int vendor, int product, const std::string& description, const
     if (ret < 0)
        return ret;
 
-    d->dev = usb_device(d->ftdi->usb_dev);
-
     return get_strings_and_reopen();
 }
 
@@ -118,8 +114,6 @@ int Context::open(const std::string& description)
     if (ret < 0)
        return ret;
 
-    d->dev = usb_device(d->ftdi->usb_dev);
-
     return get_strings_and_reopen();
 }