Skip to contentSkip to conversation

Remove some unused variables

PATCH In review Magnus Fromreide 2 participants 2 messages May 21, 2012

lore
Share & tools
lore

Magnus Fromreide

author
#0 lore raw

PATCH 3/3 Remove some unused variables

Signed-off-by Magnus Fromreide <magfr(a)lysator.liu.se>
---
 src/calibrate/calibrate.cpp |    6 ------
 src/tuning/runtime.cpp      |    2 --
 src/tuning/tuningusb.cpp    |    2 --
 3 files changed, 10 deletions(-)
src/calibrate/calibrate.cpp +0 -6
index 7dd8a5f..cf00fcf 100644
@@ -145,8 +145,6 @@ static void find_all_rfkill(void)
 	if (!dir)
 		return;
 	while (1) {
-		ifstream file;
-
 		entry = readdir(dir);
 
 		if (!entry)
@@ -190,8 +188,6 @@ static void find_backlight(void)
 	if (!dir)
 		return;
 	while (1) {
-		ifstream file;
-
 		entry = readdir(dir);
 
 		if (!entry)
@@ -232,8 +228,6 @@ static void find_scsi_link(void)
 	if (!dir)
 		return;
 	while (1) {
-		ifstream file;
-
 		entry = readdir(dir);
 
 		if (!entry)
src/tuning/runtime.cpp +0 -2
index 8f428e6..b57d53e 100644
@@ -83,7 +83,6 @@ runtime_tunable::runtime_tunable(const char *path, const char *bus, const char *
 
 int runtime_tunable::good_bad(void)
 {
-	ifstream file;
 	string content;
 
 	content = read_sysfs_string(runtime_path);
@@ -131,7 +130,6 @@ void add_runtime_tunables(const char *bus)
 	if (!dir)
 		return;
 	while (1) {
-		ifstream file;
 		class runtime_tunable *runtime;
 
 		entry = readdir(dir);
src/tuning/tuningusb.cpp +0 -2
index b483ce2..74bbacf 100644
@@ -81,7 +81,6 @@ usb_tunable::usb_tunable(const char *path, const char *name) : tunable("", 0.9,
 
 int usb_tunable::good_bad(void)
 {
-	ifstream file;
 	string content;
 
 	content = read_sysfs_string(usb_path);
@@ -127,7 +126,6 @@ void add_usb_tunables(void)
 	if (!dir)
 		return;
 	while (1) {
-		ifstream file;
 		class usb_tunable *usb;
 
 		entry = readdir(dir);
Signature · 1 line
1.7.10
#1 lore raw

patch applied
Thank You
-Chris

Quoted 78 lines · Magnus Fromreide
Signed-off-by Magnus Fromreide<magfr(a)lysator.liu.se>
---
  src/calibrate/calibrate.cpp |    6 ------
  src/tuning/runtime.cpp      |    2 --
  src/tuning/tuningusb.cpp    |    2 --
  3 files changed, 10 deletions(-)
src/calibrate/calibrate.cpp +0 -6
index 7dd8a5f..cf00fcf 100644
@@ -145,8 +145,6 @@ static void find_all_rfkill(void)
  	if (!dir)
  		return;
  	while (1) {
-		ifstream file;
-
  		entry = readdir(dir);
 
  		if (!entry)
@@ -190,8 +188,6 @@ static void find_backlight(void)
  	if (!dir)
  		return;
  	while (1) {
-		ifstream file;
-
  		entry = readdir(dir);
 
  		if (!entry)
@@ -232,8 +228,6 @@ static void find_scsi_link(void)
  	if (!dir)
  		return;
  	while (1) {
-		ifstream file;
-
  		entry = readdir(dir);
 
  		if (!entry)
src/tuning/runtime.cpp +0 -2
index 8f428e6..b57d53e 100644
@@ -83,7 +83,6 @@ runtime_tunable::runtime_tunable(const char *path, const char *bus, const char *
 
  int runtime_tunable::good_bad(void)
  {
-	ifstream file;
  	string content;
 
  	content = read_sysfs_string(runtime_path);
@@ -131,7 +130,6 @@ void add_runtime_tunables(const char *bus)
  	if (!dir)
  		return;
  	while (1) {
-		ifstream file;
  		class runtime_tunable *runtime;
 
  		entry = readdir(dir);
src/tuning/tuningusb.cpp +0 -2
index b483ce2..74bbacf 100644
@@ -81,7 +81,6 @@ usb_tunable::usb_tunable(const char *path, const char *name) : tunable("", 0.9,
 
  int usb_tunable::good_bad(void)
  {
-	ifstream file;
  	string content;
 
  	content = read_sysfs_string(usb_path);
@@ -127,7 +126,6 @@ void add_usb_tunables(void)
  	if (!dir)
  		return;
  	while (1) {
-		ifstream file;
  		class usb_tunable *usb;
 
  		entry = readdir(dir);