Skip to content

Commit

Permalink
Removed 93 warnings for unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
purplecabbage committed Dec 13, 2011
1 parent d796244 commit 8e7e62d
Show file tree
Hide file tree
Showing 11 changed files with 99 additions and 110 deletions.
8 changes: 4 additions & 4 deletions framework/PhoneGap/Commands/Accelerometer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void startWatch(string options)
this.SetStatus(Starting);
}
}
catch (Exception e)
catch (Exception)
{
this.DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, ErrorFailedToStart));
return;
Expand Down Expand Up @@ -220,11 +220,11 @@ public void getAcceleration(string options)
DispatchCommandResult(new PluginResult(PluginResult.Status.OK, GetCurrentAccelerationFormatted()));
}
}
catch (UnauthorizedAccessException e)
catch (UnauthorizedAccessException)
{
DispatchCommandResult(new PluginResult(PluginResult.Status.ILLEGAL_ACCESS_EXCEPTION, ErrorFailedToStart));
}
catch (Exception e)
catch (Exception)
{
DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, ErrorFailedToStart));
}
Expand Down Expand Up @@ -275,7 +275,7 @@ private int start()
this.SetStatus(Starting);
}
}
catch (Exception e)
catch (Exception)
{
this.SetStatus(ErrorFailedToStart);
}
Expand Down
6 changes: 3 additions & 3 deletions framework/PhoneGap/Commands/AudioPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public void startRecording(string filePath)
FrameworkDispatcher.Update();
this.SetState(MediaRunning);
}
catch (Exception e)
catch (Exception)
{
this.handler.InvokeCustomScript(new ScriptCallback(CallbackFunction, this.id, MediaError, MediaErrorStartingRecording));
}
Expand Down Expand Up @@ -193,7 +193,7 @@ public void stopRecording()
this.FinalizeXnaGameLoop();
this.SetState(MediaStopped);
}
catch (Exception e)
catch (Exception)
{
//TODO
}
Expand Down Expand Up @@ -462,7 +462,7 @@ private void SaveAudioClipToLocalStorage()
}
}
}
catch (Exception e)
catch (Exception)
{
//TODO: log or do something else
throw;
Expand Down
15 changes: 2 additions & 13 deletions framework/PhoneGap/Commands/Camera.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,6 @@ public class Camera : BaseCommand
/// </summary>
private const int PNG = 1;

/// <summary>
/// Desired width of the image
/// </summary>
private int targetWidth;

/// <summary>
/// desired height of the image
/// </summary>
private int targetHeight;


/// <summary>
/// Folder to store captured images
/// </summary>
Expand Down Expand Up @@ -231,7 +220,7 @@ public void onTaskCompleted(object sender, PhotoResult e)
DispatchCommandResult(new PluginResult(PluginResult.Status.OK, imagePathOrContent));

}
catch (Exception ex)
catch (Exception)
{
DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, "Error retrieving image."));
}
Expand Down Expand Up @@ -304,7 +293,7 @@ private string SaveImageToLocalStorage(WriteableBitmap image, string imageFileNa

return new Uri(filePath, UriKind.Relative).ToString();
}
catch (Exception e)
catch (Exception)
{
//TODO: log or do something else
throw;
Expand Down
12 changes: 6 additions & 6 deletions framework/PhoneGap/Commands/Capture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ public void getFormatData(string options)
DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR));
}
}
catch (Exception e)
catch (Exception)
{
DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR));
}
Expand Down Expand Up @@ -472,7 +472,7 @@ private void cameraTask_Completed(object sender, PhotoResult e)
files.Clear();
}
}
catch (Exception ex)
catch (Exception)
{
DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, "Error capturing image."));
}
Expand Down Expand Up @@ -539,7 +539,7 @@ private void audioRecordingTask_Completed(object sender, AudioResult e)
files.Clear();
}
}
catch (Exception ex)
catch (Exception)
{
DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, "Error capturing audio."));
}
Expand Down Expand Up @@ -606,7 +606,7 @@ private void videoRecordingTask_Completed(object sender, VideoResult e)
files.Clear();
}
}
catch (Exception ex)
catch (Exception)
{
DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR, "Error capturing video."));
}
Expand Down Expand Up @@ -657,7 +657,7 @@ private WriteableBitmap ExtractImageFromLocalStorage(string filePath)
return imageSource;
}
}
catch (Exception e)
catch (Exception)
{
return null;
}
Expand Down Expand Up @@ -693,7 +693,7 @@ private string SaveImageToLocalStorage(string imageFileName, string imageFolder,

return filePath;
}
catch (Exception e)
catch (Exception)
{
//TODO: log or do something else
throw;
Expand Down
6 changes: 3 additions & 3 deletions framework/PhoneGap/Commands/Compass.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public class Compass : BaseCommand

double magneticHeading;
double trueHeading;
double headingAccuracy;
//double headingAccuracy;

bool isDataValid;
//bool isDataValid;

bool calibrating = false;
//bool calibrating = false;

public Compass()
{
Expand Down
Loading

0 comments on commit 8e7e62d

Please sign in to comment.