[PC-BSD Commits] r15055 - pcbsd/current/src-qt4/libpcbsd

svn at pcbsd.org svn at pcbsd.org
Tue Jan 24 12:35:52 PST 2012


Author: kenmoore
Date: 2012-01-24 20:35:52 +0000 (Tue, 24 Jan 2012)
New Revision: 15055

Modified:
   pcbsd/current/src-qt4/libpcbsd/hardware.cpp
   pcbsd/current/src-qt4/libpcbsd/pcbsd-hardware.h
Log:
Remove an unused function from libpcbsd-hardware



Modified: pcbsd/current/src-qt4/libpcbsd/hardware.cpp
===================================================================
--- pcbsd/current/src-qt4/libpcbsd/hardware.cpp	2012-01-24 20:33:46 UTC (rev 15054)
+++ pcbsd/current/src-qt4/libpcbsd/hardware.cpp	2012-01-24 20:35:52 UTC (rev 15055)
@@ -33,11 +33,6 @@
 #include "pcbsd-utils.h"
 #include "pcbsd-hardware.h"
 
-Hardware::Hardware(QString devName)
-{
-   HardwareName = devName;
-}
-
 // --------- BLUETOOTH HARDWARE ----------
 QStringList Hardware::getBTdevNames(){
   //This function returns a list of: [localName,deviceName] (i.e. [MyPCBSD,ubt0] )
@@ -179,7 +174,7 @@
   QStringList bdaddrlist;
   QStringList output = Utils::listShellCommandSearch("hccontrol -n ubt0hci inquiry","BD_ADDR");
   for(int i=0; i<output.length(); i++){
-    QString bdaddr = output[i].section(":",1,6,QString::SectionSkipEmpty).simplified();
+    QString bdaddr = output[i].section(":",1,7,QString::SectionSkipEmpty).simplified();
     if( !bdaddrlist.contains(bdaddr) ){bdaddrlist << bdaddr;} //add to the list if it is unique
   }
   return bdaddrlist;

Modified: pcbsd/current/src-qt4/libpcbsd/pcbsd-hardware.h
===================================================================
--- pcbsd/current/src-qt4/libpcbsd/pcbsd-hardware.h	2012-01-24 20:33:46 UTC (rev 15054)
+++ pcbsd/current/src-qt4/libpcbsd/pcbsd-hardware.h	2012-01-24 20:35:52 UTC (rev 15055)
@@ -42,7 +42,6 @@
    static QString getBTRemoteName(QString bdaddr);
 
 private:
-   static QString HardwareName;
    static QString getHcsecsDeviceValue(QString rawline); //for bluetooth functions
 };
 



More information about the Commits mailing list